Created
October 3, 2026 14:24
-
-
Save LearnWebCode/489d0fd4bb24842c68fc003723c5679e to your computer and use it in GitHub Desktop.
Example service file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=My Express App | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=debian | |
| WorkingDirectory=/home/debian/myprojects/minecraft-express-app | |
| ExecStart=/home/debian/.nvm/versions/node/v24.21.0/bin/node server.js | |
| Restart=on-failure | |
| RestartSec=10 | |
| Environment=NODE_ENV=production | |
| # Environment=PORT=3000 | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment