-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathstart.bat
49 lines (35 loc) · 934 Bytes
/
start.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
pushd %~dp0
where /q node
if errorlevel 1 (
echo NodeJS does not appear to be installed.
echo Please install the latest LTS version from https://nodejs.org/
goto end
)
where /q npm
if errorlevel 1 (
echo The npm command does not appear to be available.
echo Please ensure that npm was installed during NodeJS setup.
goto end
)
if not exist node_modules (
echo The server's dependencies will now be installed.
echo This process requires an internet connection and may take some time.
echo.
pause
call npm install
if errorlevel 1 (
if exist bin rmdir /q /s bin
if exist node_modules rmdir /q /s node_modules
echo Installation failed. Cannot continue.
goto end
)
echo Installation successful, launching server.
echo.
)
rem Project Diva requires TLSv1.0
set DEBUG=app:*
node --tls-min-v1.0 .\bin\index.js
:end
echo.
pause