gulp y dev windows
This commit is contained in:
parent
98dada7c8c
commit
1dd69db8b2
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Iniciar",
|
"name": "Iniciar",
|
||||||
"type": "node",
|
"type": "node",
|
||||||
|
@ -61,6 +62,27 @@
|
||||||
"console": "internalConsole",
|
"console": "internalConsole",
|
||||||
"sourceMaps": false,
|
"sourceMaps": false,
|
||||||
"outFiles": []
|
"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$');
|
var regex = new RegExp('^src/(.*)/routes\.js$');
|
||||||
|
|
||||||
function cb(file) {
|
function cb(file) {
|
||||||
var relative = file.relative.replace('\\', '/');
|
var relative = file.relative.replace(/\\/g,'/');
|
||||||
var dirname = relative.match(regex)[1];
|
var dirname = relative.match(regex)[1];
|
||||||
return {dirname: dirname};
|
return {dirname: dirname};
|
||||||
}
|
}
|
||||||
|
|
9
dev.cmd
9
dev.cmd
|
@ -1,6 +1,6 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set currentDir=%~dp0
|
set currentDir=%cd%
|
||||||
set nginxPrefix=%currentDir%\services\nginx
|
set nginxPrefix=%currentDir%\services\nginx
|
||||||
set nginxConf=%nginxPrefix%\conf-dev.conf
|
set nginxConf=%nginxPrefix%\conf-dev.conf
|
||||||
|
|
||||||
|
@ -12,18 +12,19 @@ goto caseUsage
|
||||||
:caseStart
|
:caseStart
|
||||||
call "%0" stop
|
call "%0" stop
|
||||||
echo "################################ Starting services"
|
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 start forever.json
|
||||||
call forever list
|
call forever list
|
||||||
call mkdir "%nginxPrefix%\temp"
|
|
||||||
call start /b nginx -c "%nginxConf%" -p "%nginxPrefix%"
|
|
||||||
cd @salix
|
cd @salix
|
||||||
gulp
|
gulp
|
||||||
goto caseExit
|
goto caseExit
|
||||||
|
|
||||||
:caseStop
|
:caseStop
|
||||||
echo "################################ Stoping services"
|
echo "################################ Stoping services"
|
||||||
|
if exist "%nginxPrefix%\temp\nginx.pid" (nginx -c "%nginxConf%" -p "%nginxPrefix%" -s stop)
|
||||||
forever stopall
|
forever stopall
|
||||||
nginx -c "%nginxConf%" -p "%nginxPrefix%" -s stop
|
|
||||||
goto caseExit
|
goto caseExit
|
||||||
|
|
||||||
:caseUsage
|
:caseUsage
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
logs/*
|
||||||
static/*
|
static/*
|
||||||
temp/*
|
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