Skip to content

Instantly share code, notes, and snippets.

@guiomie
Created September 21, 2011 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guiomie/1233353 to your computer and use it in GitHub Desktop.
Save guiomie/1233353 to your computer and use it in GitHub Desktop.
Serves an invisible image, but a css file without any issues.
var express = require("express"),
app = express.createServer();
app.use(express.static(__dirname + '/static'));
app.get('/', function(req, res){
res.send('Hello World');
});
app.listen(process.env.C9_PORT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment