From a35ad405d7b3f4c8b7ad081d1c2ceb452ef5af4e Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Sun, 28 Sep 2025 23:18:09 -0700 Subject: [PATCH] minor updates --- .gitignore | 1 + .vscode/extensions.json | 6 ++++++ docs/DEPLOYMENT.md | 6 +++--- package.json | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .vscode/extensions.json diff --git a/.gitignore b/.gitignore index 3b462cb..17600a4 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ Thumbs.db # Vite vite.config.js.timestamp-* vite.config.ts.timestamp-* +.data diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a64db6a --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,6 @@ +{ + "recommendations": [ + "svelte.svelte-vscode", + "bradlc.vscode-tailwindcss" + ] +} diff --git a/docs/DEPLOYMENT.md b/docs/DEPLOYMENT.md index d9ce594..696e079 100644 --- a/docs/DEPLOYMENT.md +++ b/docs/DEPLOYMENT.md @@ -104,7 +104,7 @@ sudo systemctl enable --now plebsaber.service sudo systemctl status plebsaber.service --no-pager ``` -The Node server listens on `0.0.0.0:3000` by default. +The Node server listens on `0.0.0.0:8037` by default. ### 4) Caddy reverse proxy @@ -119,7 +119,7 @@ plebsaber.stream { path /robots.txt } - reverse_proxy 127.0.0.1:3000 { + reverse_proxy 127.0.0.1:8037 { health_uri /healthz } @@ -168,6 +168,6 @@ ssh user@server 'sudo -u plebsaber bash -lc "cd /srv/plebsaber/app && tar -xzf p - This project is configured with `@sveltejs/adapter-node` and includes server routes under `src/routes/api/beatleader/...` for server-side BeatLeader requests. - If you need environment variables, set them in the systemd unit with `Environment=KEY=VALUE` or `EnvironmentFile=`. -- Ensure your firewall allows inbound 80/443 (Caddy) and blocks 3000 from the internet. +- Ensure your firewall allows inbound 80/443 (Caddy) and blocks 8037 from the internet. diff --git a/package.json b/package.json index 0e53fef..345611a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "dev": "vite dev", "build": "vite build", "preview": "vite preview", - "start": "node build/index.js", + "start": "PORT=8037 node build/index.js", "prepare": "svelte-kit sync || echo ''", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",