2016-11-18 13:12:57 +00:00
|
|
|
@echo off
|
|
|
|
|
2016-11-23 10:44:33 +00:00
|
|
|
set currentDir=%~dp0
|
|
|
|
set nginxPrefix=%currentDir%\services\nginx
|
|
|
|
set nginxConf=%nginxPrefix%\conf-dev.conf
|
|
|
|
|
2016-11-18 13:12:57 +00:00
|
|
|
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
|
|
|
call "%0" stop
|
2016-11-23 10:44:33 +00:00
|
|
|
echo "################################ Starting services"
|
2016-11-18 13:12:57 +00:00
|
|
|
call forever start forever.json
|
|
|
|
call forever list
|
2016-11-23 10:44:33 +00:00
|
|
|
call nginx -c "%nginxConf%" -p "%nginxPrefix%"
|
2016-11-18 13:12:57 +00:00
|
|
|
call cd @salix
|
|
|
|
call gulp
|
2016-11-23 10:44:33 +00:00
|
|
|
goto caseExit
|
2016-11-18 13:12:57 +00:00
|
|
|
|
2016-11-21 07:35:05 +00:00
|
|
|
:caseStop
|
2016-11-23 10:44:33 +00:00
|
|
|
echo "################################ Stoping services"
|
2016-11-18 13:12:57 +00:00
|
|
|
call forever stopall
|
2016-11-23 10:44:33 +00:00
|
|
|
call nginx -c "%nginxConf%" -p "%nginxPrefix%" -s stop
|
|
|
|
goto caseExit
|
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
|
|
|
|
2016-11-23 10:44:33 +00:00
|
|
|
:caseExit
|