salix/env.cmd

34 lines
676 B
Batchfile
Raw Normal View History

@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
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
call cd @salix
call gulp
2016-11-21 07:35:05 +00:00
goto salir
2016-11-21 07:35:05 +00:00
:caseStop
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-21 07:35:05 +00:00
:caseUsage
echo "Usage: %0 [start|stop]"
2016-11-21 07:35:05 +00:00
:salir