24 lines
490 B
Desktop File
24 lines
490 B
Desktop File
[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
|