mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Merge pull request #35 from Toxicat/master
👍
Add a command to start nginx in windows environnement
This commit is contained in:
11
gulpfile.js
11
gulpfile.js
@@ -158,6 +158,17 @@ gulp.task('serve', function(cb) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Windows command to launch nginx serv
|
||||||
|
gulp.task('serve-win', function(cb) {
|
||||||
|
exec('nginx -p %cd% -c nginx.conf', function (err, stdout, stderr) {
|
||||||
|
if (stderr) {
|
||||||
|
console.warn(stderr);
|
||||||
|
console.warn('Is NGINX already running?\n');
|
||||||
|
}
|
||||||
|
cb();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
gulp.task('serve-stop', function(cb) {
|
gulp.task('serve-stop', function(cb) {
|
||||||
exec('kill -QUIT $(cat nginx.pid)', function (err, stdout, stderr) {
|
exec('kill -QUIT $(cat nginx.pid)', function (err, stdout, stderr) {
|
||||||
if (stderr) console.log(stderr); else cb(err);
|
if (stderr) console.log(stderr); else cb(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user