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