Removed nodemon as requirement.
This commit is contained in:
parent
db91fcb18b
commit
f4996cafd2
26
clientx.service
Normal file
26
clientx.service
Normal 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
3
nodemon.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"watch": false
|
||||||
|
}
|
||||||
@ -11,7 +11,6 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js",
|
"start": "node index.js",
|
||||||
"watch": "nodemon --ext js, json --watch config.js, --watch index.js",
|
|
||||||
"registry": "node registry.js"
|
"registry": "node registry.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user