gulp y dev windows
This commit is contained in:
parent
98dada7c8c
commit
1dd69db8b2
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
|
||||
{
|
||||
"name": "Iniciar",
|
||||
"type": "node",
|
||||
|
@ -61,6 +62,27 @@
|
|||
"console": "internalConsole",
|
||||
"sourceMaps": false,
|
||||
"outFiles": []
|
||||
},
|
||||
{
|
||||
"name": "gulp debug",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"program": "${workspaceRoot}\\@salix\\node_modules\\gulp\\bin\\gulp.js",
|
||||
"stopOnEntry": false,
|
||||
"args": [],
|
||||
"cwd": "${workspaceRoot}\\@salix",
|
||||
"preLaunchTask": null,
|
||||
"runtimeExecutable": null,
|
||||
"runtimeArgs": [
|
||||
"--nolazy"
|
||||
],
|
||||
"env": {
|
||||
"NODE_ENV": "development"
|
||||
},
|
||||
"console": "internalConsole",
|
||||
"sourceMaps": false,
|
||||
"outFiles": []
|
||||
}
|
||||
|
||||
]
|
||||
}
|
|
@ -105,7 +105,7 @@ gulp.task('routes', function() {
|
|||
var regex = new RegExp('^src/(.*)/routes\.js$');
|
||||
|
||||
function cb(file) {
|
||||
var relative = file.relative.replace('\\', '/');
|
||||
var relative = file.relative.replace(/\\/g,'/');
|
||||
var dirname = relative.match(regex)[1];
|
||||
return {dirname: dirname};
|
||||
}
|
||||
|
|
9
dev.cmd
9
dev.cmd
|
@ -1,6 +1,6 @@
|
|||
@echo off
|
||||
|
||||
set currentDir=%~dp0
|
||||
set currentDir=%cd%
|
||||
set nginxPrefix=%currentDir%\services\nginx
|
||||
set nginxConf=%nginxPrefix%\conf-dev.conf
|
||||
|
||||
|
@ -12,18 +12,19 @@ goto caseUsage
|
|||
:caseStart
|
||||
call "%0" stop
|
||||
echo "################################ Starting services"
|
||||
if not exist "%nginxPrefix%\temp" (mkdir "%nginxPrefix%\temp")
|
||||
start /I nginx -c "%nginxConf%" -p "%nginxPrefix%"
|
||||
call forever start forever.json
|
||||
call forever list
|
||||
call mkdir "%nginxPrefix%\temp"
|
||||
call start /b nginx -c "%nginxConf%" -p "%nginxPrefix%"
|
||||
|
||||
cd @salix
|
||||
gulp
|
||||
goto caseExit
|
||||
|
||||
:caseStop
|
||||
echo "################################ Stoping services"
|
||||
if exist "%nginxPrefix%\temp\nginx.pid" (nginx -c "%nginxConf%" -p "%nginxPrefix%" -s stop)
|
||||
forever stopall
|
||||
nginx -c "%nginxConf%" -p "%nginxPrefix%" -s stop
|
||||
goto caseExit
|
||||
|
||||
:caseUsage
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
logs/*
|
||||
static/*
|
||||
temp/*
|
|
@ -0,0 +1,7 @@
|
|||
2016/12/28 09:50:24 [notice] 5196#5988: signal process started
|
||||
2016/12/28 10:09:41 [notice] 11168#10432: signal process started
|
||||
2016/12/28 14:03:31 [notice] 10312#9012: signal process started
|
||||
2016/12/28 14:04:01 [notice] 9996#32: signal process started
|
||||
2016/12/28 14:08:07 [notice] 7984#8980: signal process started
|
||||
2016/12/28 14:13:33 [notice] 10144#6644: signal process started
|
||||
2016/12/28 14:44:57 [notice] 3248#9176: signal process started
|
Loading…
Reference in New Issue