17 lines
519 B
Desktop File
17 lines
519 B
Desktop File
# Rôle : exécute le serveur de production Sokko G avec la version Node fixée par le projet.
|
|
[Unit]
|
|
Description=Sokko G WebApp
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=shinuwa
|
|
WorkingDirectory=/data/webapps/sites/sokko-g
|
|
Environment=NODE_ENV=production
|
|
Environment=PATH=/home/shinuwa/.nvm/versions/node/v24.11.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
ExecStart=/home/shinuwa/.nvm/versions/node/v24.11.1/bin/npm start
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|