Created
May 11, 2014 15:46
-
-
Save thefury/2b3bf957884864744b00 to your computer and use it in GitHub Desktop.
Simple server for static web development/experiments
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
var util = require('util'), | |
connect = require('connect'), | |
port = 8000; | |
connect.createServer(connect.static(__dirname)).listen(port); | |
console.log('listening on port: ' + port); | |
console.log('press ctrl-c to stop'); | |
# start server with node server.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment