34 lines
681 B
Batchfile
34 lines
681 B
Batchfile
|
@echo off
|
||
|
|
||
|
if "%1"=="" goto caseStart
|
||
|
if "%1"=="start" goto caseStart
|
||
|
if "%1"=="stop" goto caseStop
|
||
|
goto caseUsage
|
||
|
|
||
|
caseStart:
|
||
|
echo ######################
|
||
|
echo "Arrancando Servicios"
|
||
|
echo ######################
|
||
|
echo.
|
||
|
call "%0" stop
|
||
|
call forever start forever.json
|
||
|
call forever list
|
||
|
call nginx -c conf-dev.conf -p @salix
|
||
|
call cd @salix
|
||
|
call gulp
|
||
|
exit 0
|
||
|
|
||
|
caseStop:
|
||
|
echo ######################
|
||
|
echo "Parando Servicios"
|
||
|
echo ######################
|
||
|
echo.
|
||
|
call forever stopall
|
||
|
call forever list
|
||
|
call nginx -c conf-dev.conf -p @salix -s stop
|
||
|
exit 0
|
||
|
|
||
|
caseUsage:
|
||
|
echo "Usage: %0 [start|stop]"
|
||
|
exit 1
|