Fix config

This commit is contained in:
Mattias Erming 2014-11-06 11:48:10 +00:00
parent ac6aeaeba2
commit 4d525eba88
2 changed files with 9 additions and 4 deletions

View File

@ -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.

View File

@ -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);