Skip to content

Instantly share code, notes, and snippets.

@dreamalligator
Last active August 29, 2015 14:00
Show Gist options
  • Save dreamalligator/11386183 to your computer and use it in GitHub Desktop.
Save dreamalligator/11386183 to your computer and use it in GitHub Desktop.
My server file. `node server.js`
//change mywebdir to the folder you wish to serve
var port = 80
var mywebdir = 'myoutput'
var connect = require('connect')
connect().use(connect.static(mywebdir)).listen(port);
console.log('Server running on port '+port);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment