Fix config
This commit is contained in:
parent
ac6aeaeba2
commit
4d525eba88
@ -170,13 +170,14 @@ module.exports = {
|
|||||||
//
|
//
|
||||||
join: "#foo, #shout-irc"
|
join: "#foo, #shout-irc"
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set socket.io transports
|
// Set socket.io transports
|
||||||
//
|
//
|
||||||
// @type array
|
// @type array
|
||||||
// @default ['polling', 'websocket']
|
// @default ["polling', "websocket"]
|
||||||
//
|
//
|
||||||
transports: ['polling', 'websocket']
|
transports: ["polling", "websocket"],
|
||||||
|
|
||||||
//
|
//
|
||||||
// Run Shout with HTTPS support.
|
// Run Shout with HTTPS support.
|
||||||
|
@ -24,8 +24,12 @@ if (program.home) {
|
|||||||
var config = Helper.HOME + "/config.js";
|
var config = Helper.HOME + "/config.js";
|
||||||
if (!fs.existsSync(config)) {
|
if (!fs.existsSync(config)) {
|
||||||
mkdirp.sync(Helper.HOME);
|
mkdirp.sync(Helper.HOME);
|
||||||
fs.writeFileSync(config, fs.readFileSync(__dirname + "/../../defaults/config.js"));
|
fs.writeFileSync(
|
||||||
console.log("Config created:" + config);
|
config,
|
||||||
|
fs.readFileSync(__dirname + "/../../defaults/config.js")
|
||||||
|
);
|
||||||
|
console.log("Config created:");
|
||||||
|
console.log(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
program.parse(argv.args);
|
program.parse(argv.args);
|
||||||
|
Loading…
Reference in New Issue
Block a user