Files
gd-list/server/LINUX_SERVICE_SETUP.txt
T
miles 90310fd671 Add run submission & admin moderation
Add a live run submission workflow and admin moderation UI.

- Add run.html: new page to submit runs (video, raw footage, notes) and show recent submissions.
- Update admelist.html: admin overview plus run queue table for reviewing/approving/rejecting/deleting submissions.
- Update app.js: client-side support for runs (load/refresh/caching, SSE "runs-update", admin review actions, run submission handling, and graceful fallback when no server is available).
- Server changes: add server/runs.json, implement /api/runs (GET, POST) and /api/runs/:id (PUT, DELETE) in server/server.js, ensure runs file, emit runs-update events, broaden CORS, set BASE path (/fedl) and default port 8090.
- Add styles for admin overview, run submission UI and submission cards in styles.css.
- Update README with run/admin pages and example URLs, adjust start-server.command to use PORT=8090, and minor note in LINUX_SERVICE_SETUP.txt.

Notes: live submission/review features require running the Node server; client falls back to static behavior when served from file:// or when server is unavailable.
2026-03-31 21:24:50 -05:00

64 lines
1.4 KiB
Plaintext

Linux system service setup
This lets the server start automatically on boot on a Linux device.
MAKE A FILE NAME data.txt TO RUN DO THIS FURST
1. Copy the project to the Linux machine.
Example path:
/opt/fedl
2. Make sure Node.js is installed.
Check with:
node -v
3. Test the server manually first.
In the project folder run:
HOST=0.0.0.0 PORT=3000 node server/server.js
4. Create a systemd service file.
Run:
sudo nano /etc/systemd/system/fedl.service
5. Paste this into the service file.
[Unit]
Description=FEDL Node Server
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/fedl
ExecStart=/usr/bin/env node /opt/fedl/server/server.js
Environment=HOST=0.0.0.0
Environment=PORT=3000
Restart=always
RestartSec=3
User=www-data
Group=www-data
[Install]
WantedBy=multi-user.target
6. Reload systemd.
sudo systemctl daemon-reload
7. Enable the service.
sudo systemctl enable fedl.service
8. Start the service.
sudo systemctl start fedl.service
9. Check status.
sudo systemctl status fedl.service
10. View logs.
sudo journalctl -u fedl.service -f
Notes
- If your project is not in /opt/fedl, change WorkingDirectory and ExecStart.
- If www-data does not exist on your Linux system, use your own service user.
- Make sure port 3000 is allowed through the firewall.
- If you use a reverse proxy like Nginx, you can proxy to:
http://127.0.0.1:3000