From f4996cafd251b7e333d1dcc9179e996bd1a296ad Mon Sep 17 00:00:00 2001 From: jrmyr Date: Fri, 2 May 2025 10:54:42 +0000 Subject: [PATCH] Removed nodemon as requirement. --- clientx.service | 26 ++++++++++++++++++++++++++ nodemon.json | 3 +++ package.json | 1 - 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 clientx.service create mode 100644 nodemon.json diff --git a/clientx.service b/clientx.service new file mode 100644 index 0000000..d3c6288 --- /dev/null +++ b/clientx.service @@ -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 diff --git a/nodemon.json b/nodemon.json new file mode 100644 index 0000000..1233452 --- /dev/null +++ b/nodemon.json @@ -0,0 +1,3 @@ +{ + "watch": false +} diff --git a/package.json b/package.json index 268165b..c2047e4 100644 --- a/package.json +++ b/package.json @@ -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": {