Skip to content

Instantly share code, notes, and snippets.

@tantaman
Created May 25, 2012 22:03
Show Gist options
  • Save tantaman/2790845 to your computer and use it in GitHub Desktop.
Save tantaman/2790845 to your computer and use it in GitHub Desktop.
simple static file serv example
var Express = require("express");
var webServ = Express.createServer();
webServ.use(Express.static('../workspace'));
webServ.listen(8080);
console.log("Web server listening on port: 8080");
@jbass86
Copy link

jbass86 commented May 25, 2012

carrot should be under run, but it keeps autoformating it

@jbass86
Copy link

jbass86 commented May 25, 2012

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