Note that there are some explanatory texts on larger screens.

plurals
  1. POHeroku Sinatra application repeatedly crashing and can't use console
    text
    copied!<p>I'm having trouble with a Sinatra application which I'm trying to deploy to Heroku - this is my first time with Sinatra and Heroku.</p> <p>I have a .gems file with one line: "sinatra" as well as a config.ru file with the following lines:</p> <pre><code>require 'myapplication' run Sinatra::Application </code></pre> <p>After pushing to heroku and navigating to the url I receive a page that says "App Crashed" and the following text:</p> <blockquote> <p>This application is temporarily offline. If you're the administrator of this app, please check your heroku logs for the backtrace.</p> </blockquote> <p>The output from "heroku logs" is:<pre> 2011-02-10T01:33:24-08:00 app[web.1]: from ./myapplication.rb:3 2011-02-10T01:33:24-08:00 app[web.1]: from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in <code>gem_original_require' 2011-02-10T01:33:24-08:00 app[web.1]: from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in</code>require' 2011-02-10T01:33:24-08:00 app[web.1]: from config.ru:2 &lt;-- TEXT SNIPPED --> 2011-02-10T01:33:24-08:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `new' 2011-02-10T01:33:24-08:00 app[web.1]: from /home/heroku_rack/heroku.ru:1 2011-02-10T01:33:25-08:00 heroku[web.1]: State changed from starting to crashed 2011-02-10T01:33:32-08:00 heroku[nginx]: GET / HTTP/1.1 | 75.56.61.69 | 3310 | http | 500</pre></p> <p>Where the 3rd line of the myapplication.rb is a "require 'models'" where "models.rb" exists in the same directory as "myapplication.rb".</p> <p>Also whenever I run the "heroku console" command, I receive the following:</p> <pre>Your application is too busy to open a console session. Console sessions require an open dyno to use for execution.</pre> <p>I've tried various options to try to get this to go away but haven't succeeded yet.</p> <p>Thanks for any help offered!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload