Browse Source

Rename util to utils

tags/v0.2.0
Muthu Kumar 7 years ago
parent
commit
abb0d278a3
  1. 6
      actions/createProxyServer.js
  2. 6
      actions/createStaticServer.js
  3. 6
      actions/killServer.js

6
actions/createProxyServer.js

@ -1,9 +1,9 @@
var fs = require('fs-extra');
var shell = require('shelljs');
var npath = require('../util/nginxPath');
var conf = require('../util/nginxConf');
var nginxReload = require('../util/nginxReload');
var npath = require('../utils/nginxPath');
var conf = require('../utils/nginxConf');
var nginxReload = require('../utils/nginxReload');
var EOL = require('os').EOL; // \n if used on Linux, \r\n if used on Windows.

6
actions/createStaticServer.js

@ -2,9 +2,9 @@ var fs = require('fs-extra');
var shell = require('shelljs');
var path = require('path');
var npath = require('../util/nginxPath');
var conf = require('../util/nginxConf');
var nginxReload = require('../util/nginxReload');
var npath = require('../utils/nginxPath');
var conf = require('../utils/nginxConf');
var nginxReload = require('../utils/nginxReload');
var currentPath = path.normalize(process.cwd());
var EOL = require('os').EOL; // \n if used on Linux, \r\n if used on Windows.

6
actions/killServer.js

@ -1,8 +1,8 @@
var shell = require('shelljs');
var npath = require('../util/nginxPath');
var conf = require('../util/nginxConf');
var nginxReload = require('../util/nginxReload');
var npath = require('../utils/nginxPath');
var conf = require('../utils/nginxConf');
var nginxReload = require('../utils/nginxReload');
function killServer(domain, outPort) {
shell.rm('-rf', conf(npath.enabledSites(), domain, outPort));

Loading…
Cancel
Save