fix: Corriger le chemin SERVER_DIR pour le déploiement distant et ajouter configuration systemd

This commit is contained in:
innotex
2026-02-05 01:07:06 +01:00
committed by NationsGlory Deploy
parent e19fd78d75
commit ec50d8e306
2 changed files with 21 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
NODE_ENV=development NODE_ENV=production
PORT=3000 PORT=4001
SESSION_SECRET=your-very-secret-session-key-change-in-production SESSION_SECRET=your-very-secret-session-key-change-in-production
SERVER_DIR=/home/innotex/Documents/Projet/Serveur NationsGlory/NationsGlory_ServeurBuild_Red # LOCAL: /home/innotex/Documents/Projet/Serveur NationsGlory/NationsGlory_ServeurBuild_Red
# REMOTE: /home/innotex/NationsGloryRED/NationsGlory_ServeurBuild_Red
SERVER_DIR=/home/innotex/NationsGloryRED/NationsGlory_ServeurBuild_Red
RCON_HOST=localhost RCON_HOST=localhost
RCON_PORT=25575 RCON_PORT=25575

16
nationglory-admin.service Normal file
View File

@@ -0,0 +1,16 @@
[Unit]
Description=NationsGlory Admin Web Interface
After=network.target
[Service]
Type=simple
User=innotex
WorkingDirectory=/home/innotex/WebNationsGlory_Deploy/backend
ExecStart=/usr/bin/node src/server.js
Restart=always
RestartSec=10
Environment="NODE_ENV=production"
Environment="PORT=4001"
[Install]
WantedBy=multi-user.target