mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
18 lines
431 B
JavaScript
18 lines
431 B
JavaScript
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'))
|
|
})
|
|
|
|
app.listen(3003, function() {
|
|
console.log("Node app is running at localhost:" + 3003)
|
|
})
|