Compare commits
6 Commits
adjust-url
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5cd5b38df0 | ||
|
|
4667e612fd | ||
|
|
1d68ce40e7 | ||
|
|
ae256eea91 | ||
|
|
7bad2ab562 | ||
|
|
54b7c92e83 |
@@ -31,3 +31,15 @@ Backend startup quickstart:
|
||||
make poller — Builds and runs the poller.
|
||||
make poller-dev — Runs the poller with auto-reload.
|
||||
|
||||
## Production: `make build` + restart service
|
||||
|
||||
On the server, from this directory:
|
||||
|
||||
- **`make build`** — writes fresh **`bin/api`** and **`bin/poller`** (see the Makefile).
|
||||
- **`make build-api`** — API only; **`make build-poller`** — poller only.
|
||||
|
||||
Building alone does **not** reload a process that is already listening (e.g. on port 8080). After deploy:
|
||||
|
||||
1. Ensure **`systemctl`** (or your supervisor) **`ExecStart`** runs the binary you just built (e.g. **`.../backend/bin/api`**) or copy `bin/api` to that path.
|
||||
2. **`sudo systemctl restart <your-api-service>`** (and the poller service if you rebuilt it).
|
||||
3. Optional check: **`readlink -f /proc/<pid>/exe`** should show your **`bin/api`** path without **`(deleted)`** — if you see `(deleted)`, an old process is still running the previous binary from memory.
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Koin Ping - On-Chain Monitoring</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.jsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Koin Ping - On-Chain Monitoring</title>
|
||||
<script data-goatcounter="https://koinping.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.jsx"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -12,10 +12,12 @@ const navLinks = [
|
||||
|
||||
export default function Navbar() {
|
||||
const { currentUser, logout } = useAuth();
|
||||
const authData = useAuth();
|
||||
const location = useLocation();
|
||||
const [isNavPanelOpen, setIsNavPanelOpen] = useState(false);
|
||||
|
||||
if (!currentUser) return null;
|
||||
console.log(authData)
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user