This commit is contained in:
1 parent
4f9478f25a
commit
43e569971a
1 file changed
+23
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Goofy Fowl Foundation web server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# Update these two to match your deployment
|
||||
User=nick
|
||||
WorkingDirectory=/opt/goofyfowlfoundation
|
||||
|
||||
# Build the app before each start (skip this if you build separately)
|
||||
#ExecStartPre=/usr/bin/npm ci
|
||||
#ExecStartPre=/usr/bin/npm run build
|
||||
ExecStart=/usr/bin/node server.js
|
||||
|
||||
Environment=NODE_ENV=production
|
||||
Environment=PORT=3001
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user