2016-11-18 13:12:57 +00:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
if "%1"=="" goto caseStart
|
|
|
|
if "%1"=="start" goto caseStart
|
|
|
|
if "%1"=="stop" goto caseStop
|
|
|
|
goto caseUsage
|
|
|
|
|
2016-11-21 07:35:05 +00:00
|
|
|
:caseStart
|
2016-11-18 13:12:57 +00:00
|
|
|
echo ######################
|
|
|
|
echo "Arrancando Servicios"
|
|
|
|
echo ######################
|
|
|
|
echo.
|
|
|
|
call "%0" stop
|
|
|
|
call forever start forever.json
|
|
|
|
call forever list
|
2016-11-21 07:35:05 +00:00
|
|
|
call nginx -c conf-dev.conf
|
2016-11-18 13:12:57 +00:00
|
|
|
call cd @salix
|
|
|
|
call gulp
|
2016-11-21 07:35:05 +00:00
|
|
|
goto salir
|
2016-11-18 13:12:57 +00:00
|
|
|
|
2016-11-21 07:35:05 +00:00
|
|
|
:caseStop
|
2016-11-18 13:12:57 +00:00
|
|
|
echo ######################
|
|
|
|
echo "Parando Servicios"
|
|
|
|
echo ######################
|
|
|
|
echo.
|
|
|
|
call forever stopall
|
|
|
|
call forever list
|
|
|
|
call nginx -c conf-dev.conf -p @salix -s stop
|
2016-11-21 07:35:05 +00:00
|
|
|
goto salir
|
2016-11-18 13:12:57 +00:00
|
|
|
|
2016-11-21 07:35:05 +00:00
|
|
|
:caseUsage
|
2016-11-18 13:12:57 +00:00
|
|
|
echo "Usage: %0 [start|stop]"
|
2016-11-21 07:35:05 +00:00
|
|
|
|
|
|
|
:salir
|