-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.bat
53 lines (42 loc) · 1.19 KB
/
init.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
50
51
52
53
@echo off
setlocal enableextensions enabledelayedexpansion
if "%1" == "" echo "Current options: elasticsearch, nodemon, watch, mongod, mongo, forever"
if "%1" == "" SET /P inputName= "Command > "
if NOT "%1" == "" SET inputName=%1
if "%inputName%" == "elastisearch" goto StartElastisearch
if "%inputName%" == "elasticsearch" goto StartElastisearch
if "%inputName%" == "nodemon" goto StartNodemon
if "%inputName%" == "watch" goto StartGulpWatch
if "%inputName%" == "mongod" goto StartMongod
if "%inputName%" == "mongo" goto StartMongo
if "%inputName%" == "forever" goto StartForever
echo Unknown Start Command...
goto :EndOfFile
:StartElastisearch
echo Starting Elastisearch...
cd "C:\elastisearch\bin"
set "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101"
elasticsearch.bat
goto :EndOfFile
:StartNodemon
echo Starting Nodemon...
nodemon server.js -e js --ignore public/
goto :EndOfFile
:StartGulpWatch
echo Starting Gulp Watch...
gulp watch
goto :EndOfFile
:StartMongod
echo Starting Mongod...
mongod
goto :EndOfFile
:StartMongo
echo Opening Mongo Shell...
mongo
goto :EndOfFile
:StartForever
echo Starting Forever...
forever --uid "OEIS" -a start server.js
goto :EndOfFile
:EndOfFile
endlocal