Removed nodemon as requirement.

This commit is contained in:
jrmyr 2025-05-02 10:54:42 +00:00
parent db91fcb18b
commit f4996cafd2
3 changed files with 29 additions and 1 deletions

26
clientx.service Normal file
View File

@ -0,0 +1,26 @@
[Unit]
Description=ClientX Discord Bot
After=network.target
[Service]
# Path to the Node.js executable and the entry point file.
ExecStart=/usr/bin/node /root/clientx/index.js
# Set the working directory to your project folder.
WorkingDirectory=/root/clientx
# Automatically restart process if it crashes.
Restart=always
# Wait 10 seconds before attempting a restart.
RestartSec=10
# Run as a non-root user for security (change "nodeuser" to your configured user).
#User=root
#Group=root
# Set any environment variables if needed.
Environment=NODE_ENV=production
[Install]
# Start the service on multi-user run levels.
WantedBy=multi-user.target

3
nodemon.json Normal file
View File

@ -0,0 +1,3 @@
{
"watch": false
}

View File

@ -11,7 +11,6 @@
},
"scripts": {
"start": "node index.js",
"watch": "nodemon --ext js, json --watch config.js, --watch index.js",
"registry": "node registry.js"
},
"dependencies": {