Add example systemd services

main
Talon 2024-08-26 19:15:20 +02:00
parent 8763269e4c
commit 38a6d41e2e
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,14 @@
[Unit]
Description=backend Service
After=network.target
[Service]
User=notebrook
WorkingDirectory=/home/notebrook/backend
ExecStart=/usr/bin/npm start
Restart=always
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,14 @@
[Unit]
Description=frontend Service notebrook
After=network.target
[Service]
User=notebrook
WorkingDirectory=/home/notebrook/frontend
ExecStart=/usr/bin/npm run dev -- --host
Restart=always
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target