Created
May 25, 2012 22:03
-
-
Save tantaman/2790845 to your computer and use it in GitHub Desktop.
simple static file serv example
This file contains hidden or 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"); | |
var webServ = Express.createServer(); | |
webServ.use(Express.static('../workspace')); | |
webServ.listen(8080); | |
console.log("Web server listening on port: 8080"); |
carrot should be under run, but it keeps autoformating it
nevermind its working now, really strange... I swear i didnt change anything
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yeah I'm doing exaclty that I'm getting this error...
module.js 434
var compiledWrapper = runInThisContext(wrapper, filename, true)
^
Syntax Error unexptec token