Skip to content

Instantly share code, notes, and snippets.

@ivanoats
Created May 16, 2014 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanoats/642b82cfd1a5437d511e to your computer and use it in GitHub Desktop.
Save ivanoats/642b82cfd1a5437d511e to your computer and use it in GitHub Desktop.
'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