Skip to content

Commit

Permalink
Check for nodester port
Browse files Browse the repository at this point in the history
  • Loading branch information
distracteddev committed Oct 26, 2012
1 parent ff0a1dc commit 964a8bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.js
Expand Up @@ -293,7 +293,7 @@ app.router.path('/\/animals', function () {
});


var port = process.env.PORT = process.env.PORT || 9000;
var port = process.env.PORT = process.env.PORT || process.env.app_port || 9000;
app.start(port);
app.log.info("Started at http://localhost:" + port + "/");

Expand Down
3 changes: 2 additions & 1 deletion dictum/server/rpc/comments.coffee
Expand Up @@ -43,7 +43,8 @@ exports.actions = (req, res, ss) ->
newReply.save (err, saved_reply) ->
if err is null
# console.log "Reply added to Comment Succesfully", saved_reply
saved_reply.ctime = (new Date(saved_reply.ctime)).toLocaleDateString()
saved_reply.ctime = (new Date(+saved_reply.ctime)).toLocaleDateString()
saved.replies = JSON.parse(saved.replies) if typeof saved.replies is 'string'
ss.publish.channel post_id, 'newReply', saved_reply
res(true)
else
Expand Down

0 comments on commit 964a8bc

Please sign in to comment.