24 lines
654 B
SYSTEMD
24 lines
654 B
SYSTEMD
|
|
# Copy to: /etc/systemd/system/bls-project-console.service
|
||
|
|
# Then: systemctl daemon-reload && systemctl enable --now bls-project-console
|
||
|
|
|
||
|
|
[Unit]
|
||
|
|
Description=BLS Project Console (Node/Express)
|
||
|
|
After=network.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
WorkingDirectory=/vol1/1000/Docker/nginx/project/bls/bls_project_console
|
||
|
|
|
||
|
|
# Use repo .env (copy .env.example -> .env)
|
||
|
|
EnvironmentFile=/vol1/1000/Docker/nginx/project/bls/bls_project_console/.env
|
||
|
|
Environment=NODE_ENV=production
|
||
|
|
|
||
|
|
# Node 22 is installed on host. If node path differs, replace /usr/bin/node.
|
||
|
|
ExecStart=/usr/bin/node src/backend/server.js
|
||
|
|
|
||
|
|
Restart=always
|
||
|
|
RestartSec=2
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|