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

View File

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