fix: Corriger le chemin SERVER_DIR pour le déploiement distant et ajouter configuration systemd
This commit is contained in:
16
nationglory-admin.service
Normal file
16
nationglory-admin.service
Normal 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
|
||||
Reference in New Issue
Block a user