Skip to content

Instantly share code, notes, and snippets.

@poshaughnessy
Created January 31, 2012 09:28
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save poshaughnessy/1709617 to your computer and use it in GitHub Desktop.
Save poshaughnessy/1709617 to your computer and use it in GitHub Desktop.
Simple static site on Heroku with Node.js
var express = require('express');
var port = process.env.PORT || 3000;
var app = express.createServer();
app.get('/', function(request, response) {
response.sendfile(__dirname + '/index.html');
}).configure(function() {
app.use('/images', express.static(__dirname + '/images'));
}).listen(port);
@nicolasdiazoff
Copy link

sorry not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment