From 43e569971ae55a9e52fc9d523747bb606605628d Mon Sep 17 00:00:00 2001 From: Chewbaccalakis Date: Sat, 8 Aug 2026 14:36:24 -0700 Subject: [PATCH] service file --- goofyfowlfoundation.service | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 goofyfowlfoundation.service diff --git a/goofyfowlfoundation.service b/goofyfowlfoundation.service new file mode 100644 index 0000000..7f9602a --- /dev/null +++ b/goofyfowlfoundation.service @@ -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