mirror of
https://github.com/DeNNiiInc/Connect-5.git
synced 2026-10-12 21:01:28 +11:00
Add systemd service and auto-start setup script
This commit is contained in:
1 parent
d0f72f01c8
commit
e398aa6885
2 files changed
+89
No files matched your search
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Connect-5 Multiplayer Game Server
|
||||
Documentation=https://github.com/DeNNiiInc/Connect-5
|
||||
After=network.target postgresql.service
|
||||
Wants=postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/var/www/html/app-connect5.beyondcloud.technology
|
||||
ExecStart=/usr/bin/node server.js
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
Environment=NODE_ENV=production
|
||||
Environment=PORT=3000
|
||||
# Add any other environment variables here
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user