Skip to content

Commit

Permalink
Updated env and package
Browse files Browse the repository at this point in the history
  • Loading branch information
christkv committed Dec 20, 2012
1 parent bf60409 commit 47f0501
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 16 additions & 1 deletion env.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,22 @@ var run = function(callback) {
return callback(err);
}

console.log(format("server listening on %s:%s", APP_HOST, APP_PORT));
// Print out a nice message to the console
console.log(
[ ""
, " | |"
, " | |"
, " — — — | — — — | — — — "
, " | |"
, " | |"
, " — — — | — — — | — — — "
, " | |"
, " | |"
, ""
, "tic-tac-toe server v" + require('./package.json').version
, "listening on port " + APP_PORT + " and host " + APP_HOST
].join('\n'));

// Return successful start of server
callback(null);
});
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "A multiplayer tic-tac-toe game",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1"
, "start": "node app.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 47f0501

Please sign in to comment.