add batch file to update and start

This commit is contained in:
Sanskar Tiwari
2023-05-20 19:37:01 +05:30
parent 2c2b45119b
commit 4b20abc389

16
UpdateAndStart.bat Normal file
View File

@@ -0,0 +1,16 @@
@echo off
pushd %~dp0
git --version > nul 2>&1
if %errorlevel% neq 0 (
echo Git is not installed on this system. Skipping update.
) else (
call git pull
if %errorlevel% neq 0 (
REM incase we get merge conflicts or something
echo There were errors while updating. Please download the latest version manually.
)
)
call npm install
node server.js
pause
popd