Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 1.95 KB

File metadata and controls

74 lines (49 loc) · 1.95 KB

Wrestling Scoreboard Server

Wrestling software server for managing team matches and competitions.

Setup

Download the latest server version from the releases section and extract it into e.g. inside $HOME/.local/share/wrestling_scoreboard_server.

It is recommended to start the app with user privileges, here www. Avoid using root, especially if the server is open to the public.

Environment variables:

Create file .env in the wrestling_scoreboard_server directory. A pre-configuration can be found in .env.example file (cp .env.example .env). Change the values to your needs.

Database

For a manual / more detailed setup of the Postgres database, see the database docs.

Run server

Execute the ./bin/wrestling-scoreboard-server executable from within the wrestling_scoreboard_server directory, to handle resource paths correctly.

Deployment

Linux Systemd service

nano $HOME/.config/systemd/user/wrestling-scoreboard-server.service
[Unit]
Description=Wrestling-Scoreboard-Server

[Service]
ExecStart=%h/.local/share/wrestling_scoreboard_server/bin/wrestling-scoreboard-server
WorkingDirectory=%h/.local/share/wrestling_scoreboard_server
Restart=on-failure
RestartSec=15
#User=www
#Group=www

[Install]
WantedBy=default.target
systemctl --user daemon-reload
systemctl --user enable wrestling-scoreboard-server.service
systemctl --user start wrestling-scoreboard-server.service

Additionally, enable session for user www on boot:

sudo loginctl enable-linger www

To view server logs: journalctl --user -u wrestling-scoreboard-server

Web server

If using Nginx as Reverse Proxy, you can take advantage of this config files.

Development

Build package

dart compile exe bin/server.dart