Skip to content

Instantly share code, notes, and snippets.

@simenbrekken
Created August 6, 2014 09:15
Show Gist options
  • Select an option

  • Save simenbrekken/9bbc16872182d642e7fe to your computer and use it in GitHub Desktop.

Select an option

Save simenbrekken/9bbc16872182d642e7fe to your computer and use it in GitHub Desktop.
Node.js server.
var express = require('express')
var server = express()
server.use(express.static('build'))
server.use(function(request, response) {
response.sendfile('src/index.html')
});
server.listen(3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment