Browse Source

Added nginxReload function

tags/v0.2.0
Muthu Kumar 7 years ago
parent
commit
88a6bb1829
  1. 5
      index.js

5
index.js

@ -5,6 +5,9 @@ var program = require('commander');
var shell = require('shelljs');
var fs = require('fs-extra');
var chalk = require('chalk');
var bash = require('child_process.exec');
var nginxReload = bash("nginx -t && service reload nginx");
// Requiring utils
var validate = require('./util/validate');
@ -75,7 +78,7 @@ program.on('--help', function () {
program.parse(process.argv);
try {
exec("nginx -t && service reload nginx");
nginxReload();
}
catch (e) {

Loading…
Cancel
Save