title: Application Crash with Heroku, Mongoid, and MongoHQ
body: <p>I am trying to get my application online and functioning with Heroku.</p>
  
  <p>The application uses MongoHQ and Mongoid.</p>
  
  <p>I have read multiple guides that just say to add this, "uri: &lt;%= ENV['MONGOHQ_URL'] %>" to the mongoid.yml file, but it's not working for me.</p>
  
  <p>This is the error I get from Heroku,</p>
  
  <p>"Application Error</p>
  
  <p>An error occurred in the application and your page could not be served. Please try again in a few moments.</p>
  
  <p>If you are the application owner, check your logs for details."</p>
  
  <p>This is what it's in my $ heroku logs</p>
  
  <p>2011-03-12T21:09:57-08:00 heroku[router]: Error H10 (App crashed) -> GET autommator.heroku.com/ dyno=none queue=0 wait=0ms service=0ms bytes=0
  2011-03-12T21:09:57-08:00heroku[nginx]: GET / HTTP/1.1 | 76.112.220.158 | 795 | http | 503</p>
  
  <p>Here is my mongoid.yml file.</p>
  
  <pre><code>require 'yaml'
  YAML::ENGINE.yamler= 'syck'
  
  defaults: &amp;defaults
    host: localhost
    # slaves:
    #   - host: slave1.local
    #     port: 27018
    #   - host: slave2.local
    #     port: 27019
  
  development:
    &lt;&lt;: *defaults
    host: localhost
    database: autommator_development
  
  test:
    &lt;&lt;: *defaults
    host: localhost
    database: autommator_test
  
  # set these environment variables on your prod server
  production:
    uri: &lt;%= ENV['MONGOHQ_URL'] %&gt;
    host: &lt;%= ENV['MONGOID_HOST'] %&gt;
    port: &lt;%= ENV['MONGOID_PORT'] %&gt;
    username: &lt;%= ENV['MONGOID_USERNAME'] %&gt;
    password: &lt;%= ENV['MONGOID_PASSWORD'] %&gt;
    database: &lt;%= ENV['MONGOID_DATABASE'] %&gt;
  </code></pre>
  
  <p>Completely out of ideas.</p>
  
  <p>Thanks.</p>