Created
October 26, 2012 11:10
-
-
Save davidklassen/3958230 to your computer and use it in GitHub Desktop.
Express server for static files
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 express = require('express') | |
, app = express() | |
, port = 3000 | |
, staticPath = '/../sources' | |
app.use(express.favicon()) | |
app.use(express.static(__dirname + staticPath)) | |
app.listen(port, function () { | |
console.log('Listening on port ', port) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment