support dockerfiles without expose command. closes #1083

This commit is contained in:
Michael Hobbs
2015-04-03 12:13:39 -07:00
parent 5c938fee8a
commit c2053d5322
7 changed files with 64 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
var express = require('express')
var app = express();
app.set('port', (process.env.PORT || 5000))
app.use(express.static(__dirname + '/public'))
app.get('/', function(request, response) {
response.send('Hello World!')
})
app.listen(app.get('port'), function() {
console.log("Node app is running at localhost:" + app.get('port'))
})