Add example systemd services
parent
8763269e4c
commit
38a6d41e2e
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue