Last active
August 29, 2015 14:00
-
-
Save dreamalligator/11386183 to your computer and use it in GitHub Desktop.
My server file. `node server.js`
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
//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