Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

listening on port

  • Loading branch information...
commit 913150bdbe08fcfa25e05770dbb38296fe8149eb 1 parent 252cd77
@seanhess authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 app.js
View
5 app.js
@@ -28,8 +28,9 @@ if (cluster.isMaster) {
}
}
else {
- app.listen(3333)
- console.log("Listening on 3333")
+ var PORT = process.env.PORT || 3333
+ app.listen(PORT)
+ console.log("Listening on " + PORT)
}
Please sign in to comment.
Something went wrong with that request. Please try again.