0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 06:12:51 +00:00

Add HB service file

Update install.sh to create service and set to start automatically
This commit is contained in:
G.Ambatte
2021-12-19 18:50:35 +13:00
parent aa4de67e90
commit 41bc6ca444
2 changed files with 35 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
[Unit]
Description=Homebrewery Web Server
[Service]
User=root
After=mongodb
Environment=NODE_ENV=local
WorkingDirectory=/usr/local/homebrewery
ExecStart=node server.js
Restart=always
[Install]
WantedBy=multi-user.target