Files
goofyfowlfoundation/goofyfowlfoundation.service
nick 43e569971a
Publish Docker image / build-and-push (push) Canceled after 0s
service file
2026-08-08 14:36:24 -07:00

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