From e600f699a9c0349a6605025d6d5c534bcd9decf4 Mon Sep 17 00:00:00 2001 From: Wizzard <25581244+Wizzard@users.noreply.toomuchslop.com> Date: Fri, 14 Jul 2023 12:34:56 -0400 Subject: [PATCH] Modified script and auto updater --- scripts/start.sh | 2 -- start_linux.sh | 3 +++ temp_start.bat | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) delete mode 100755 scripts/start.sh create mode 100644 start_linux.sh diff --git a/scripts/start.sh b/scripts/start.sh deleted file mode 100755 index 871f2b0..0000000 --- a/scripts/start.sh +++ /dev/null @@ -1,2 +0,0 @@ -#node main.js > /dev/null 2>&1 & -../node_modules/.bin/pm2 start main.js diff --git a/start_linux.sh b/start_linux.sh new file mode 100644 index 0000000..2c2497f --- /dev/null +++ b/start_linux.sh @@ -0,0 +1,3 @@ +#node main.js > /dev/null 2>&1 & +git pull +node_modules/.bin/pm2 start main.js diff --git a/temp_start.bat b/temp_start.bat index 2c767ad..8937823 100644 --- a/temp_start.bat +++ b/temp_start.bat @@ -1,3 +1,4 @@ @echo off cd %~dp0 +git pull node_modules\.bin\pm2.cmd start main.js