Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Lee committed Dec 27, 2017
1 parent 934d374 commit 4d71aae
Show file tree
Hide file tree
Showing 8 changed files with 2,460 additions and 5 deletions.
8 changes: 5 additions & 3 deletions dev_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ const { spawn } = require('child_process');
const path = require("path");
const YAML = require('yamljs');
const colors = require('colors/safe');
const CONF_PATHS = [
let CONF_PATHS = [
path.resolve('dev-service.conf.yml'),
path.resolve(__dirname, 'dev-service.conf.yml')
];

console.log(process.argv)
// console.log(process.argv);
if (process.argv[2]) {
CONF_PATHS.unshift(path.resolve(process.argv[2]));
// CONF_PATHS.unshift(path.resolve(process.argv[2]));
// force use argument
CONF_PATHS = [path.resolve(process.argv[2])];
}

let devService = null;
Expand Down
Loading

0 comments on commit 4d71aae

Please sign in to comment.