title: Reading HTML in Node.js
body: <p>I'm trying to launch an index.html page with nodejs, but for some reason I keep getting an Application error after I push it to Heroku. Any idea what I have wrong with my code?</p>
  
  <pre><code> #/!/usr/bin/env node
  
   var express = require('express');
  
   var app = express.createServer(express.logger());
  
   app.get('/', function(request, response) {
       var fs = require('fs');
       var buffer = new Buffer();
       response.send(buffer.toString('utc-8', fs.readFileSync("index.html")));
   });
  
   var port = process.env.PORT || 5000;
   app.listen(port, function() {
   console.log("Listening on " + port);
   });
  </code></pre>