Created
May 16, 2014 21:13
-
-
Save ivanoats/642b82cfd1a5437d511e to your computer and use it in GitHub Desktop.
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
'use strict'; | |
var express = require('express'); | |
var http = require('http'); | |
var app = express(); | |
app.use(express.static( __dirname + '/dist')); | |
app.set('port', process.env.PORT || 3000); | |
var server = http.createServer(app); | |
server.listen(app.get('port'), function() { | |
console.log('Server running on ' + app.get('port')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment