ruby - Sinatra app not deploying to Heroku, rackup crashed -


config.ru

require './app' run sinatra::application 

gemfile

source 'http://rubygems.org'  gem 'heroku' gem 'sinatra' gem 'thin' 

procfile

web: bundle exec rackup config.ru -p $port 

here heroku logs

2013-08-10t01:21:03.753984+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file' 2013-08-10t01:21:03.754180+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start' 2013-08-10t01:21:03.754180+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:141:in `start' 2013-08-10t01:21:03.754180+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app' 2013-08-10t01:21:04.799863+00:00 heroku[web.1]: state changed starting crashed 2013-08-10t01:21:04.790161+00:00 heroku[web.1]: process exited status 1 2013-08-10t01:21:25.615653+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=beer-voter.herokuapp.com fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 2013-08-10t01:22:57.223684+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=beer-voter.herokuapp.com fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 2013-08-10t01:24:34.417907+00:00 heroku[api]: starting process command `bundle exec rake db:migrate` jgallardo720@gmail.com 2013-08-10t01:24:39.051510+00:00 heroku[run.1200]: awaiting client 2013-08-10t01:24:39.073013+00:00 heroku[run.1200]: starting process command `bundle exec rake db:migrate` 2013-08-10t01:24:41.746057+00:00 heroku[run.1200]: state changed starting 2013-08-10t01:24:46.002914+00:00 heroku[run.1200]: process exited status 1 2013-08-10t01:24:46.018585+00:00 heroku[run.1200]: state changed complete 2013-08-10t01:26:31.150052+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=beer-voter.herokuapp.com fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 2013-08-10t01:29:07.598813+00:00 heroku[web.1]: state changed crashed starting 2013-08-10t01:29:11.616194+00:00 heroku[web.1]: starting process command `bundle exec rackup config.ru -p 26270` 2013-08-10t01:29:15.827320+00:00 app[web.1]: /app/config.ru:1:in `require': cannot load such file -- ./app (loaderror) 2013-08-10t01:29:15.827320+00:00 app[web.1]:    /app/config.ru:1:in `block in <main>' 2013-08-10t01:29:15.827320+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval' 2013-08-10t01:29:15.827320+00:00 app[web.1]:    /app/config.ru:in `new' 2013-08-10t01:29:15.827320+00:00 app[web.1]:    /app/config.ru:in `<main>' 2013-08-10t01:29:15.827320+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file' 2013-08-10t01:29:15.827320+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config' 2013-08-10t01:29:15.827320+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string' 2013-08-10t01:29:15.827320+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize' 2013-08-10t01:29:15.827320+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval' 2013-08-10t01:29:15.827512+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app' 2013-08-10t01:29:15.827512+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app' 2013-08-10t01:29:15.827512+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start' 2013-08-10t01:29:15.827512+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:141:in `start' 2013-08-10t01:29:15.827512+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `load' 2013-08-10t01:29:15.827512+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>' 2013-08-10t01:29:15.827799+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `<main>' 2013-08-10t01:29:17.475127+00:00 heroku[web.1]: state changed starting crashed 2013-08-10t01:29:17.455240+00:00 heroku[web.1]: process exited status 1 2013-08-10t01:39:12.643653+00:00 heroku[web.1]: state changed crashed starting 2013-08-10t01:39:15.630798+00:00 heroku[web.1]: starting process command `bundle exec rackup config.ru -p 26323` 2013-08-10t01:39:17.108286+00:00 app[web.1]:    /app/config.ru:1:in `block in <main>' 2013-08-10t01:39:17.108286+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval' 2013-08-10t01:39:17.108286+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize' 2013-08-10t01:39:17.108286+00:00 app[web.1]:    /app/config.ru:in `new' 2013-08-10t01:39:17.108286+00:00 app[web.1]:    /app/config.ru:in `<main>' 2013-08-10t01:39:17.108286+00:00 app[web.1]: /app/config.ru:1:in `require': cannot load such file -- ./app (loaderror) 2013-08-10t01:39:17.108286+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval' 2013-08-10t01:39:17.108286+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string' 2013-08-10t01:39:17.108286+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file' 2013-08-10t01:39:17.108286+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config' 2013-08-10t01:39:17.108500+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app' 2013-08-10t01:39:17.108500+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app' 2013-08-10t01:39:17.108500+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start' 2013-08-10t01:39:17.108500+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:141:in `start' 2013-08-10t01:39:17.108500+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>' 2013-08-10t01:39:17.108500+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `load' 2013-08-10t01:39:17.108500+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `<main>' 2013-08-10t01:39:18.608414+00:00 heroku[web.1]: process exited status 1 2013-08-10t01:39:18.624453+00:00 heroku[web.1]: state changed starting crashed 2013-08-10t01:49:20.129509+00:00 heroku[web.1]: state changed crashed starting 2013-08-10t01:49:25.310821+00:00 heroku[web.1]: starting process command `bundle exec rackup config.ru -p 31607` 2013-08-10t01:49:29.293008+00:00 app[web.1]:    /app/config.ru:1:in `block in <main>' 2013-08-10t01:49:29.293008+00:00 app[web.1]: /app/config.ru:1:in `require': cannot load such file -- ./app (loaderror) 2013-08-10t01:49:29.293008+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval' 2013-08-10t01:49:29.293008+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize' 2013-08-10t01:49:29.293008+00:00 app[web.1]:    /app/config.ru:in `new' 2013-08-10t01:49:29.293008+00:00 app[web.1]:    /app/config.ru:in `<main>' 2013-08-10t01:49:29.293225+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app' 2013-08-10t01:49:29.293008+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval' 2013-08-10t01:49:29.293008+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string' 2013-08-10t01:49:29.293008+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config' 2013-08-10t01:49:29.293225+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app' 2013-08-10t01:49:29.293225+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>' 2013-08-10t01:49:29.293225+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:141:in `start' 2013-08-10t01:49:29.293225+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `load' 2013-08-10t01:49:29.293008+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file' 2013-08-10t01:49:29.293225+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `<main>' 2013-08-10t01:49:29.293225+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start' 2013-08-10t01:49:30.776901+00:00 heroku[web.1]: process exited status 1 2013-08-10t01:49:30.787136+00:00 heroku[web.1]: state changed starting crashed 2013-08-10t01:59:30.949128+00:00 heroku[web.1]: state changed crashed starting 2013-08-10t01:59:34.018512+00:00 heroku[web.1]: starting process command `bundle exec rackup config.ru -p 53386` 2013-08-10t01:59:35.253202+00:00 app[web.1]: /app/config.ru:1:in `require': cannot load such file -- ./app (loaderror) 2013-08-10t01:59:35.253202+00:00 app[web.1]:    /app/config.ru:1:in `block in <main>' 2013-08-10t01:59:35.253202+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval' 2013-08-10t01:59:35.253202+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize' 2013-08-10t01:59:35.253202+00:00 app[web.1]:    /app/config.ru:in `new' 2013-08-10t01:59:35.253202+00:00 app[web.1]:    /app/config.ru:in `<main>' 2013-08-10t01:59:35.253202+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval' 2013-08-10t01:59:35.253202+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string' 2013-08-10t01:59:35.253202+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file' 2013-08-10t01:59:35.253202+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config' 2013-08-10t01:59:35.253385+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app' 2013-08-10t01:59:35.253385+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start' 2013-08-10t01:59:35.253385+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:141:in `start' 2013-08-10t01:59:35.253385+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>' 2013-08-10t01:59:35.253385+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `load' 2013-08-10t01:59:35.253385+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `<main>' 2013-08-10t01:59:36.518901+00:00 heroku[web.1]: state changed starting crashed 2013-08-10t01:59:36.501648+00:00 heroku[web.1]: process exited status 1 2013-08-10t01:59:35.253385+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app' 2013-08-10t02:00:18.345271+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=beer-voter.herokuapp.com fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 2013-08-10t02:02:01.913591+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=beer-voter.herokuapp.com fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 

and yes, app working locally

beer voter running locally

when ran heroku ps error

=== web (1x): `bundle exec rackup config.ru -p $port` web.1: crashed 2013/08/09 19:10:11 (~ 8m ago) 

these 2 lines seem indicating problem:

2013-08-10t01:29:15.827320+00:00 app[web.1]: /app/config.ru:1:in `require': cannot load such file -- ./app (loaderror) 2013-08-10t01:29:15.827320+00:00 app[web.1]:    /app/config.ru:1:in `block in <main>' 

the app trying load app.rb file, isn’t there. fact app working locally suggests file hasn’t been added git. add file (and others app uses), commit, , push again:

$ git add app.rb $ git commit $ git push heroku master 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -