Note that there are some explanatory texts on larger screens.

plurals
  1. POI checked the heroku logs and I saw an unexpected error no such file to load -- ./astute
    text
    copied!<p>SSup Whizz people!!! I've deployed a simple_fb_app on heroku. When I heroku open the app page( <a href="https://astute.heroku.com/" rel="nofollow">https://astute.heroku.com/</a>) it says application error. I checked the heroku logs and I saw an unexpected error </p> <blockquote> <p>no such file to load -- ./astute . Please help me solve this i'l buy you beer -:)</p> </blockquote> <p>MY GEMFILE HAS</p> <pre><code>gem 'sinatra', '1.0' gem 'oa-oauth', '0.1.6' GEM </code></pre> <p>MY GEMFILE LOCK HAS</p> <pre><code>remote: http://rubygems.org/ specs: addressable (2.2.8) faraday (0.5.7) addressable (~&gt; 2.2.4) multipart-post (~&gt; 1.1.0) rack (&gt;= 1.1.0, &lt; 2) multi_json (0.0.5) multipart-post (1.1.5) nokogiri (1.4.7-x86-mingw32) oa-core (0.1.6) rack (~&gt; 1.1) oa-oauth (0.1.6) multi_json (~&gt; 0.0.2) nokogiri (~&gt; 1.4.2) oa-core (= 0.1.6) oauth (~&gt; 0.4.0) oauth2 (~&gt; 0.1.0) oauth (0.4.6) oauth2 (0.1.1) faraday (~&gt; 0.5.0) multi_json (~&gt; 0.0.4) rack (1.4.1) sinatra (1.0) rack (&gt;= 1.0) PLATFORMS ruby DEPENDENCIES oa-oauth (= 0.1.6) sinatra (= 1.0) </code></pre> <p>THIS IS MY config.ru</p> <ul> <li><p>require './astute' #this is to load astute.rb</p> <p>run Sinatra::Application</p></li> </ul> <p>THIS IS MY astute.rb</p> <pre><code>require 'sinatra' #required for framework detection in heroku. require 'omniauth/oauth' enable :sessions disable :show_exceptions #Here you have to put your own Application ID and Secret APP_ID = "429085837122498" APP_SECRET = "2232ac2dd09f452a015f9f00083da8e3" use OmniAuth::Builder do provider :facebook, APP_ID, APP_SECRET, { :scope =&gt; 'email, status_update, publish_stream' } end get '/' do @articles = [] @articles &lt;&lt; {:title =&gt; 'Deploying Rack-based apps in Heroku', :url =&gt; 'http://docs.heroku.com/rack'} @articles &lt;&lt; {:title =&gt; 'Learn Ruby in twenty minutes', :url =&gt; 'http://www.ruby-lang.org/en/documentation/quickstart/'} erb :index end get '/auth/facebook/callback' do session['fb_auth'] = request.env['omniauth.auth'] session['fb_token'] = session['fb_auth']['credentials']['token'] session['fb_error'] = nil redirect '/' end get '/auth/failure' do clear_session session['fb_error'] = 'In order to use this site you must allow us access to your Facebook data&lt;br /&gt;' redirect '/' end get '/logout' do clear_session redirect '/' end def clear_session session['fb_auth'] = nil session['fb_token'] = nil session['fb_error'] = nil end </code></pre>
 

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