Last active
August 29, 2015 14:22
-
-
Save cupnoodle/3d4aa5ffbc9bd7f2527b to your computer and use it in GitHub Desktop.
Node main app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
app.set('port', (process.env.PORT || 5000)); | |
app.listen(app.get('port'), function() { | |
console.log("Node app is running on port:" + app.get('port')) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment