Application Error. Heroku deployment - ruby-on-rails

Guys I followed the steps by uploading my website to Heroku but i can't open my website. Any idea? this is my logs.
I get this error
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
2016-10-01T10:06:36.169967+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/server.rb:282:in `start'
2016-10-01T10:06:36.169968+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:90:in `block in server'
2016-10-01T10:06:36.169968+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:79:in `start'
2016-10-01T10:06:36.169971+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
2016-10-01T10:06:36.169971+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
2016-10-01T10:06:36.169972+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
2016-10-01T10:06:36.169974+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
2016-10-01T10:06:36.169975+00:00 app[web.1]: from bin/rails:4:in `require'
2016-10-01T10:06:36.169975+00:00 app[web.1]: from bin/rails:4:in `<main>'
2016-10-01T10:06:36.275138+00:00 heroku[web.1]: State changed from starting to crashed
2016-10-01T10:06:36.266024+00:00 heroku[web.1]: Process exited with status 1
2016-10-01T10:07:43.959981+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=fb12e47e-dc0d-4729-90db-f89
24f36cf6c fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:07:46.067395+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=651ac812-85be-4b
da-8f59-6d8f3498ddc3 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:07:51.057066+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=0f410cc8-9fdc-45f1-8b25-723
9ff81a061 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:07:51.841094+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=e5b2aadd-7102-4b
93-b1e9-fed57ffeff6d fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:08:24.115723+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=0dde22ce-9c0d-4ca4-bcc5-7aa
0b968d952 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:08:25.240382+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=1fc43b60-4eb6-41
2d-9aec-d889b5f0d8b8 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:09:32.710032+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=29d89e0a-bc13-4670-99c9-fbe
c2f02c106 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:09:33.810413+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=3127fe25-4f81-4e
56-96eb-4cbb4f5470a5 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:14:53.103026+00:00 heroku[web.1]: State changed from crashed to starting
2016-10-01T10:14:56.111168+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 14306 -e production`
2016-10-01T10:14:59.498769+00:00 app[web.1]: => Booting Puma
2016-10-01T10:14:59.498833+00:00 app[web.1]: => Rails 5.0.0.1 application starting in production on http://0.0.0.0:14306
2016-10-01T10:14:59.498860+00:00 app[web.1]: => Run `rails server -h` for more startup options
2016-10-01T10:15:00.116483+00:00 app[web.1]: /app/app/controllers/visitor_permits_controller.rb:18: warning: else without rescue is useless
2016-10-01T10:15:00.800902+00:00 app[web.1]: Exiting
2016-10-01T10:15:00.801090+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require': No such file to load -- t
est_helper (LoadError)
2016-10-01T10:15:00.801104+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
2016-10-01T10:15:00.801117+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
2016-10-01T10:15:00.801128+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
2016-10-01T10:15:00.801140+00:00 app[web.1]: from /app/app/models/user_test.rb:1:in `<top (required)>'
2016-10-01T10:15:00.801151+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
2016-10-01T10:15:00.801163+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
2016-10-01T10:15:00.801174+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
2016-10-01T10:15:00.801186+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
2016-10-01T10:15:00.801204+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:380:in `block in require_or_load'
2016-10-01T10:15:00.801216+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
2016-10-01T10:15:00.801228+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
2016-10-01T10:15:00.801240+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/concurrency/share_lock.rb:117:in `exclusive'
2016-10-01T10:15:00.801256+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies/interlock.rb:11:in `loading'
2016-10-01T10:15:00.801268+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:37:in `load_interlock'
2016-10-01T10:15:00.801280+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:358:in `require_or_load'
2016-10-01T10:15:00.801291+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:336:in `depend_on'
2016-10-01T10:15:00.801306+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:252:in `require_dependency'
2016-10-01T10:15:00.801317+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:476:in `block (2 levels) in eager_load!'
2016-10-01T10:15:00.801329+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:475:in `each'
2016-10-01T10:15:00.801340+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:475:in `block in eager_load!'
2016-10-01T10:15:00.801352+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:473:in `each'
2016-10-01T10:15:00.801363+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:473:in `eager_load!'
2016-10-01T10:15:00.801374+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:354:in `eager_load!'
2016-10-01T10:15:00.801385+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:59:in `each'
2016-10-01T10:15:00.801396+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
2016-10-01T10:15:00.801424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
2016-10-01T10:15:00.801411+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
2016-10-01T10:15:00.801435+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
2016-10-01T10:15:00.801446+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
2016-10-01T10:15:00.801457+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
2016-10-01T10:15:00.801468+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
2016-10-01T10:15:00.801479+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
2016-10-01T10:15:00.801490+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
2016-10-01T10:15:00.801501+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `call'
2016-10-01T10:15:00.801512+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
2016-10-01T10:15:00.801523+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-10-01T10:15:00.801534+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-10-01T10:15:00.801545+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
2016-10-01T10:15:00.801557+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
2016-10-01T10:15:00.801572+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2016-10-01T10:15:00.801589+00:00 app[web.1]: from /app/config.ru:3:in `require_relative'
2016-10-01T10:15:00.801605+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2016-10-01T10:15:00.801617+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `instance_eval'
2016-10-01T10:15:00.801628+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `initialize'
2016-10-01T10:15:00.801653+00:00 app[web.1]: from /app/config.ru:in `new'
2016-10-01T10:15:00.801752+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-10-01T10:15:00.801765+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `eval'
2016-10-01T10:15:00.801776+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `new_from_string'
2016-10-01T10:15:00.801787+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/builder.rb:40:in `parse_file'
2016-10-01T10:15:00.801798+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/server.rb:318:in `build_app_and_options_from_config'
2016-10-01T10:15:00.801810+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/server.rb:218:in `app'
2016-10-01T10:15:00.801821+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:59:in `app'
2016-10-01T10:15:00.801832+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/server.rb:353:in `wrapped_app'
2016-10-01T10:15:00.801855+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:79:in `start'
2016-10-01T10:15:00.801843+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/server.rb:282:in `start'
2016-10-01T10:15:00.801866+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:90:in `block in server'
2016-10-01T10:15:00.801877+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
2016-10-01T10:15:00.801889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
2016-10-01T10:15:00.801900+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
2016-10-01T10:15:00.801922+00:00 app[web.1]: from bin/rails:4:in `require'
2016-10-01T10:15:00.801911+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
2016-10-01T10:15:00.801934+00:00 app[web.1]: from bin/rails:4:in `<main>'
2016-10-01T10:15:00.963075+00:00 heroku[web.1]: Process exited with status 1
2016-10-01T10:15:00.981253+00:00 heroku[web.1]: State changed from starting to crashed
2016-10-01T10:15:01.641973+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=2e381d2e-dae6-48cd-a538-11b
e273e5e95 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:15:02.715647+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=6f71493d-c680-4f
ce-8e86-ee343ce4d90a fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:15:40.496226+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by leechunvoo#gmail.com
2016-10-01T10:15:43.381875+00:00 heroku[run.2762]: Awaiting client
2016-10-01T10:15:43.428171+00:00 heroku[run.2762]: Starting process with command `bundle exec rake db:migrate`
2016-10-01T10:15:43.657102+00:00 heroku[run.2762]: State changed from starting to up
2016-10-01T10:15:48.751122+00:00 heroku[run.2762]: Process exited with status 0
2016-10-01T10:15:48.802610+00:00 heroku[run.2762]: State changed from up to complete
2016-10-01T10:15:55.874848+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=2b897bed-3553-416e-904d-d06
ae92bcc8e fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:15:58.077833+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=47c29d1f-d4c6-46
78-a4db-cbde4c3fd961 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
This is the logs i got from heroku run rails console
Running rails console on safe-basin-19893... up, run.2536 (Free)
/app/app/controllers/visitor_permits_controller.rb:18: warning: else without rescue is useless
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require': No such file to load -- test_helper (LoadError)
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /app/app/models/user_test.rb:1:in `<top (required)>'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:380:in `block in require_or_load'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/concurrency/share_lock.rb:117:in `exclusive'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies/interlock.rb:11:in `loading'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:37:in `load_interlock'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:358:in `require_or_load'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:336:in `depend_on'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:252:in `require_dependency'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:476:in `block (2 levels) in eager_load!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:475:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:475:in `block in eager_load!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:473:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:473:in `eager_load!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:354:in `eager_load!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:59:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
from /app/config/environment.rb:5:in `<top (required)>'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require_environment!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:157:in `require_application_and_environment!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:77:in `console'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
from /app/bin/rails:4:in `require'
from /app/bin/rails:4:in `<main>'
Visitor Permit controller
class VisitorPermitsController < ApplicationController
before_action :set_vpermit, only: [:show, :destroy]
def index
#vpermit = VisitorPermit.all
end
def new
#vpermit = VisitorPermit.new
end
def create
#vpermit = VisitorPermit.new(vpermit_params)
if #vpermit.save
redirect_to #vpermit
end
else
end
def destroy
VisitorPermit.destroy_all(user_id: current_user)
respond_to do |format|
format.html { redirect_to root_path, notice: 'Permit was successfully canceled.' }
format.json { head :no_content }
end
end
def show
#vpermit = VisitorPermit.find(params[:id])
end
def update
#vpermit = VisitorPermit.where(user_id: current_user).take
respond_to do |format|
if #vpermit.update(vpermit_params)
format.html { redirect_to root_path}
flash[:success] = "Permit successfully updated"
format.json { render :show, status: :ok, location: #vpermit }
else
format.html { render :edit }
format.json { render json: #vpermit.errors, status: :unprocessable_entity }
end
end
end
private
# Use callbacks to share common setup or constraints between actions.
def set_vpermit
#vpermit = VisitorPermit.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def vpermit_params
params.require(:visitor_permit).permit(:vehicle_type, :name, :department, :carplate, :duration, :permitstart, :permitend)
end
end

The problem that you are having is a crashed web dyno or a boot timeout on the web dyno.
Generally there are a few methods to resolve this.
Try to run heroku restart in terminal, this stops all dynos and starts them again
You can also run $heroku run rails console in terminal, this will
give you a more detailed log of what is going wrong, from there you
can either fix the error or update your question.
You can scale down and scale back up the dynos by running: heroku ps:scale web=0 then wait a few seconds and run heroku ps:scale web=1.
You can also try heroku run rake db:migrate and then heroku restart.
If you receive more detailed logs, edit your question and add them in
EDIT:
The problem is in your controller
This method:
def create
#vpermit = VisitorPermit.new(vpermit_params)
if #vpermit.save
redirect_to #vpermit
end
else
end
Should be:
def create
#vpermit = VisitorPermit.new(vpermit_params)
if #vpermit.save
redirect_to #vpermit
else
# Should enter an action here for else
end
end
As you cannot end in the middle of an if/else statement

Related

Need help dissecting heroku logs - app works locally but consistently crashes/won't open with heroku

Copy and paste heroku logs --tail here, it didn't paste well-formatted... This is my first real Rails app I'm trying to deploy, and Heroku isn't having it. Really not sure where to go from here, I would appreciate help understanding the logs to fix this. Thank you!
2022-06-24T13:50:17.311515+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `eval'
2022-06-24T13:50:17.311517+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `new_from_string'
2022-06-24T13:50:17.311524+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:105:in `load_file'
2022-06-24T13:50:17.311524+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:66:in `parse_file'
2022-06-24T13:50:17.311526+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2022-06-24T13:50:17.311533+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:249:in `app'
2022-06-24T13:50:17.311533+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:422:in `wrapped_app'
2022-06-24T13:50:17.311540+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:312:in `block in start'
2022-06-24T13:50:17.311540+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:379:in `handle_profiling'
2022-06-24T13:50:17.311541+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:311:in `start'
2022-06-24T13:50:17.311548+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:38:in `start'
2022-06-24T13:50:17.311548+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:143:in `block in perform'
2022-06-24T13:50:17.311551+00:00 app[web.1]: from <internal:kernel>:90:in `tap'
2022-06-24T13:50:17.311557+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:134:in `perform'
2022-06-24T13:50:17.311557+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
2022-06-24T13:50:17.311564+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
2022-06-24T13:50:17.311564+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
2022-06-24T13:50:17.311566+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/command/base.rb:87:in `perform'
2022-06-24T13:50:17.311572+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/command.rb:48:in `invoke'
2022-06-24T13:50:17.311572+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands.rb:18:in `<main>'
2022-06-24T13:50:17.311579+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2022-06-24T13:50:17.311580+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2022-06-24T13:50:17.311581+00:00 app[web.1]: from bin/rails:4:in `<main>'
2022-06-24T13:50:17.431963+00:00 heroku[web.1]: Process exited with status 1
2022-06-24T13:50:17.477847+00:00 heroku[web.1]: State changed from starting to crashed
2022-06-24T13:50:17.499787+00:00 heroku[web.1]: State changed from crashed to starting
2022-06-24T13:50:20.445347+00:00 heroku[web.1]: Starting process with command `bin/rails server -p ${PORT:-5000} -e production`
2022-06-24T13:50:22.925680+00:00 app[web.1]: => Booting Puma
2022-06-24T13:50:22.925695+00:00 app[web.1]: => Rails 7.0.3 application starting in production
2022-06-24T13:50:22.925695+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options
2022-06-24T13:50:23.229561+00:00 app[web.1]: Exiting
2022-06-24T13:50:23.229722+00:00 app[web.1]: /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require': /app/app/controllers/application_controller.rb:6: syntax error, unexpected `end', expecting end-of-input (SyntaxError)
2022-06-24T13:50:23.229724+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2022-06-24T13:50:23.229734+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:27:in `require'
2022-06-24T13:50:23.229736+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:127:in `const_get'
2022-06-24T13:50:23.229746+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:127:in `cget'
2022-06-24T13:50:23.229748+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:239:in `block (2 levels) in eager_load'
2022-06-24T13:50:23.229757+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:41:in `block in ls'
2022-06-24T13:50:23.229759+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:27:in `each'
2022-06-24T13:50:23.229768+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:27:in `ls'
2022-06-24T13:50:23.229771+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:234:in `block in eager_load'
2022-06-24T13:50:23.229779+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:219:in `synchronize'
2022-06-24T13:50:23.229781+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:219:in `eager_load'
2022-06-24T13:50:23.229790+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:318:in `each'
2022-06-24T13:50:23.229792+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:318:in `eager_load_all'
2022-06-24T13:50:23.229801+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/application/finisher.rb:74:in `block in <module:Finisher>'
2022-06-24T13:50:23.229803+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/initializable.rb:32:in `instance_exec'
2022-06-24T13:50:23.229812+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/initializable.rb:32:in `run'
2022-06-24T13:50:23.229814+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/initializable.rb:61:in `block in run_initializers'
2022-06-24T13:50:23.229824+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
2022-06-24T13:50:23.229826+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2022-06-24T13:50:23.229835+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
2022-06-24T13:50:23.229837+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
2022-06-24T13:50:23.229846+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each'
2022-06-24T13:50:23.229849+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `call'
2022-06-24T13:50:23.229850+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
2022-06-24T13:50:23.229861+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
2022-06-24T13:50:23.229863+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
2022-06-24T13:50:23.229873+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/initializable.rb:60:in `run_initializers'
2022-06-24T13:50:23.229875+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/application.rb:372:in `initialize!'
2022-06-24T13:50:23.229893+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2022-06-24T13:50:23.229895+00:00 app[web.1]: from config.ru:3:in `require_relative'
2022-06-24T13:50:23.229895+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2022-06-24T13:50:23.229895+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `eval'
2022-06-24T13:50:23.229897+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `new_from_string'
2022-06-24T13:50:23.229899+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:105:in `load_file'
2022-06-24T13:50:23.229909+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:66:in `parse_file'
2022-06-24T13:50:23.229911+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2022-06-24T13:50:23.229920+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:249:in `app'
2022-06-24T13:50:23.229922+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:422:in `wrapped_app'
2022-06-24T13:50:23.229931+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:312:in `block in start'
2022-06-24T13:50:23.229933+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:379:in `handle_profiling'
2022-06-24T13:50:23.229941+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:311:in `start'
2022-06-24T13:50:23.229944+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:38:in `start'
2022-06-24T13:50:23.229952+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:143:in `block in perform'
2022-06-24T13:50:23.229954+00:00 app[web.1]: from <internal:kernel>:90:in `tap'
2022-06-24T13:50:23.229963+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:134:in `perform'
2022-06-24T13:50:23.229965+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
2022-06-24T13:50:23.229975+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
2022-06-24T13:50:23.229977+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
2022-06-24T13:50:23.229987+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/command/base.rb:87:in `perform'
2022-06-24T13:50:23.229989+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/command.rb:48:in `invoke'
2022-06-24T13:50:23.229998+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands.rb:18:in `<main>'
2022-06-24T13:50:23.230000+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2022-06-24T13:50:23.230009+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2022-06-24T13:50:23.230018+00:00 app[web.1]: from bin/rails:4:in `<main>'
2022-06-24T13:50:23.380834+00:00 heroku[web.1]: Process exited with status 1
2022-06-24T13:50:23.422776+00:00 heroku[web.1]: State changed from starting to crashed
2022-06-24T13:50:24.512528+00:00 app[api]: Starting process with command `bundle exec rake db:migrate` by user jack282323#gmail.com
2022-06-24T13:50:28.030796+00:00 heroku[run.5346]: State changed from starting to up
2022-06-24T13:50:28.225466+00:00 heroku[run.5346]: Awaiting client
2022-06-24T13:50:28.246459+00:00 heroku[run.5346]: Starting process with command `bundle exec rake db:migrate`
2022-06-24T13:50:36.326947+00:00 heroku[run.5346]: Process exited with status 0
2022-06-24T13:50:36.457648+00:00 heroku[run.5346]: State changed from up to complete
2022-06-24T13:51:11.983953+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=whispering-waters-61972.herokuapp.com request_id=f6d16d71-e463-46ee-8354-8bb946d3092d fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https
2022-06-24T13:51:12.799063+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=whispering-waters-61972.herokuapp.com request_id=c5a2d8fb-2d28-4c97-921f-23fa64cc9ee2 fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https
2022-06-24T13:52:03.935764+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=whispering-waters-61972.herokuapp.com request_id=e949196d-1ff0-4cab-9d7f-d2a459c750aa fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https
2022-06-24T13:52:04.279241+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=whispering-waters-61972.herokuapp.com request_id=c7d2fc96-312e-4c7e-aff6-506cab45ebc4 fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https
2022-06-24T13:52:06.802759+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=whispering-waters-61972.herokuapp.com request_id=45f7f405-993a-496c-be01-d12c38c7a255 fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https
2022-06-24T13:52:07.019043+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=whispering-waters-61972.herokuapp.com request_id=8d2ad5bc-0730-4421-8c36-78d949572b16 fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https```
This line in your error log is most alarming to me:
[...] `require': /app/app/controllers/application_controller.rb:6: syntax error, unexpected `end', expecting end-of-input (SyntaxError)
What is the contents of app/controllers/application_controller.rb? It looks like there's a syntax error, which is causing the application to fail to load.
I suspect you put end twice, by mistake?
If you run the application locally (rails server, or rails console) then I expect you'd also see this same error.

Heroku Crashing

I've been through the forums and I cant figure out why my heroku app crashes on start. I click "Open App" and it goes immediately to "Application Error, Check Logs" screen. Any help is greatly appreciated.
This is my log file:
2018-02-26T09:24:49.347577+00:00 heroku[web.1]: Process exited with status 1
2018-02-26T09:24:49.234581+00:00 app[web.1]: /app/app/models/ability.rb:2:in `<class:Ability>': uninitialized constant Ability::CanCan (NameError)
2018-02-26T09:24:49.234642+00:00 app[web.1]: from /app/app/models/ability.rb:1:in `<top (required)>'
2018-02-26T09:24:49.234663+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.4/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
2018-02-26T09:24:49.234669+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.4/lib/active_support/concurrency/share_lock.rb:150:in `exclusive'
2018-02-26T09:24:49.234670+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.4/lib/active_support/dependencies/interlock.rb:11:in `loading'
2018-02-26T09:24:49.234672+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:476:in `block (2 levels) in eager_load!'
2018-02-26T09:24:49.234678+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:475:in `each'
2018-02-26T09:24:49.234679+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:475:in `block in eager_load!'
2018-02-26T09:24:49.234681+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:473:in `each'
2018-02-26T09:24:49.234682+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:473:in `eager_load!'
2018-02-26T09:24:49.234683+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:354:in `eager_load!'
2018-02-26T09:24:49.234685+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/application/finisher.rb:59:in `each'
2018-02-26T09:24:49.234686+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
2018-02-26T09:24:49.234689+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/initializable.rb:30:in `run'
2018-02-26T09:24:49.234688+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/initializable.rb:30:in `instance_exec'
2018-02-26T09:24:49.234690+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/initializable.rb:55:in `block in run_initializers'
2018-02-26T09:24:49.234692+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
2018-02-26T09:24:49.234693+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2018-02-26T09:24:49.234695+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
2018-02-26T09:24:49.234696+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
2018-02-26T09:24:49.234702+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each'
2018-02-26T09:24:49.234704+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `call'
2018-02-26T09:24:49.234705+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
2018-02-26T09:24:49.234707+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
2018-02-26T09:24:49.234708+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
2018-02-26T09:24:49.234709+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/initializable.rb:54:in `run_initializers'
2018-02-26T09:24:49.234729+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/application.rb:352:in `initialize!'
2018-02-26T09:24:49.234731+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2018-02-26T09:24:49.234737+00:00 app[web.1]: from /app/config.ru:3:in `require_relative'
2018-02-26T09:24:49.234739+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2018-02-26T09:24:49.234741+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval'
2018-02-26T09:24:49.234742+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `initialize'
2018-02-26T09:24:49.234748+00:00 app[web.1]: from /app/config.ru:in `new'
2018-02-26T09:24:49.234749+00:00 app[web.1]: from /app/config.ru:in `<main>'
2018-02-26T09:24:49.234750+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `eval'
2018-02-26T09:24:49.234755+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:319:in `build_app_and_options_from_config'
2018-02-26T09:24:49.234753+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:40:in `parse_file'
2018-02-26T09:24:49.234752+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `new_from_string'
2018-02-26T09:24:49.234756+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:219:in `app'
2018-02-26T09:24:49.234758+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands/server.rb:84:in `app'
2018-02-26T09:24:49.234759+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:354:in `wrapped_app'
2018-02-26T09:24:49.234761+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:283:in `start'
2018-02-26T09:24:49.234762+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands/server.rb:104:in `start'
2018-02-26T09:24:49.234764+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands/commands_tasks.rb:90:in `block in server'
2018-02-26T09:24:49.234765+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands/commands_tasks.rb:85:in `tap'
2018-02-26T09:24:49.234766+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands/commands_tasks.rb:85:in `server'
2018-02-26T09:24:49.234768+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
2018-02-26T09:24:49.234769+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands.rb:18:in `<top (required)>'
2018-02-26T09:24:49.234771+00:00 app[web.1]: from bin/rails:9:in `require'
2018-02-26T09:24:49.234772+00:00 app[web.1]: from bin/rails:9:in `<main>'
2018-02-26T09:24:49.243493+00:00 app[web.1]: => Booting Puma
2018-02-26T09:24:49.243502+00:00 app[web.1]: => Rails 5.0.4 application starting in production on http://0.0.0.0:15755
2018-02-26T09:24:49.243504+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-02-26T09:24:49.243506+00:00 app[web.1]: Exiting
2018-02-26T09:24:49.411607+00:00 heroku[web.1]: State changed from starting to crashed
2018-02-26T14:17:21.837329+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=code4discounts.herokuapp.com request_id=ee673e8b-04ee-4aae-ad93-131690bf6a71 fwd="73.15.233.129" dyno= connect= service= status=503 bytes= protocol=https
2018-02-26T14:17:23.636292+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=code4discounts.herokuapp.com request_id=54e1ec7d-ec3d-4a84-bf67-b3ff4361bf7f fwd="73.15.233.129" dyno= connect= service= status=503 bytes= protocol=https
2018-02-26T14:28:34.892704+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=code4discounts.herokuapp.com request_id=6a52d8cb-4373-4203-b1a5-79191ad97536 fwd="73.15.233.129" dyno= connect= service= status=503 bytes= protocol=https
2018-02-26T14:28:36.733388+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=code4discounts.herokuapp.com request_id=b8f831ee-88ca-4c65-8c1d-b9929caa72cf fwd="73.15.233.129" dyno= connect= service= status=503 bytes= protocol=https
Long shot, but this happened to me in early days on Heroku.
I'm guessing that gem 'can_can' is missing from the Gemfile.
Add it, run bundle install, then make sure that Gemfile.lock is added to git repository, and changes to this file are committed.
What was happening to me before was this: I would have a gem installed previously (on a different project) and when running a new project - the gem was available. After deploying to Heroku, it was missing from Gemfile, and was not available there.
A good way to fix that is to always use bundle exec

Heroku 'Application Error' when running heroku

I am trying to run my rails app on heroku. I have deployed successfully after doing an assets:precompile to get rid of some issues caused by bootstrap. I also have done a heroku run rake db:migrate. When opening my app I get an Application Error, specifically status=503 and error=H10.
Here is my heroku log
2014-09-09T22:04:45.055585+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2014-09-09T22:04:45.055589+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2014-09-09T22:04:45.055592+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2014-09-09T22:04:45.055596+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2014-09-09T22:04:45.055593+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/server.rb:50:in `app'
2014-09-09T22:04:45.055602+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/server.rb:69:in `start'
2014-09-09T22:04:45.055599+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
2014-09-09T22:04:45.055603+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:81:in `block in server'
2014-09-09T22:04:45.055610+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
2014-09-09T22:04:45.055606+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `tap'
2014-09-09T22:04:45.055609+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `server'
2014-09-09T22:04:45.055613+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands.rb:17:in `<top (requi
red)>'
2014-09-09T22:04:45.055615+00:00 app[web.1]: from bin/rails:8:in `require'
2014-09-09T22:04:45.055618+00:00 app[web.1]: from bin/rails:8:in `<main>'
2014-09-09T22:04:45.086736+00:00 app[web.1]: => Booting WEBrick
2014-09-09T22:04:45.749149+00:00 heroku[web.1]: Process exited with status 1
2014-09-09T22:04:45.757909+00:00 heroku[web.1]: State changed from starting to crashed
2014-09-09T22:04:45.758283+00:00 heroku[web.1]: State changed from crashed to starting
2014-09-09T22:04:48.723392+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 40097 -e production`
2014-09-09T22:04:51.723638+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
2014-09-09T22:04:51.723658+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-09-09T22:04:51.723676+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-09-09T22:04:51.723790+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
2014-09-09T22:04:51.723805+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `tap'
2014-09-09T22:04:51.755978+00:00 app[web.1]: => Ctrl-C to shutdown server
2014-09-09T22:04:51.723636+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in `require_dependency'
2014-09-09T22:04:51.723656+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
2014-09-09T22:04:51.723675+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
2014-09-09T22:04:51.723789+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-09-09T22:04:51.723803+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:81:in `block in server'
2014-09-09T22:04:51.723621+00:00 app[web.1]: class users::allController < Devise::allController
2014-09-09T22:04:51.723643+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `block in eager_load!'
2014-09-09T22:04:51.723661+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2014-09-09T22:04:51.723681+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
2014-09-09T22:04:51.723793+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
2014-09-09T22:04:51.755972+00:00 app[web.1]: => Rails 4.1.4 application starting in production on http://0.0.0.0:40097
2014-09-09T22:04:51.755980+00:00 app[web.1]: Exiting
2014-09-09T22:04:51.723600+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require': /app/app/controllers/users/all_controller.rb:1: class/module name must be CONSTANT (SyntaxError)
2014-09-09T22:04:51.723639+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `each'
2014-09-09T22:04:51.723660+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2014-09-09T22:04:51.723679+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
2014-09-09T22:04:51.723792+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2014-09-09T22:04:51.723806+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `server'
2014-09-09T22:04:51.755974+00:00 app[web.1]: => Run `rails server -h` for more startup options
2014-09-09T22:04:51.723626+00:00 app[web.1]: ^
2014-09-09T22:04:51.723645+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `each'
2014-09-09T22:04:51.723662+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2014-09-09T22:04:51.723684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
2014-09-09T22:04:51.723795+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2014-09-09T22:04:51.723808+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
2014-09-09T22:04:51.723631+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
2014-09-09T22:04:51.723650+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `each'
2014-09-09T22:04:51.723669+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2014-09-09T22:04:51.723784+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2014-09-09T22:04:51.723799+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2014-09-09T22:04:51.723633+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:348:in `require_or_load'
2014-09-09T22:04:51.723651+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rai
ls/application/finisher.rb:58:in `block in <module:Finisher>'
2014-09-09T22:04:51.723670+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2014-09-09T22:04:51.723786+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2014-09-09T22:04:51.723800+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
2014-09-09T22:04:51.755966+00:00 app[web.1]: => Booting WEBrick
2014-09-09T22:04:51.723630+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
2014-09-09T22:04:51.723648+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:346:in `eager_load!'
2014-09-09T22:04:51.723667+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
2014-09-09T22:04:51.723783+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2014-09-09T22:04:51.723798+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/server.rb:50:in `app'
2014-09-09T22:04:51.723810+00:00 app[web.1]: from bin/rails:8:in `require'
2014-09-09T22:04:51.723628+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
2014-09-09T22:04:51.723647+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `eager_load!'
2014-09-09T22:04:51.723666+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2014-09-09T22:04:51.723686+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
2014-09-09T22:04:51.723796+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2014-09-09T22:04:51.723809+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands.rb:17:in `<top (required)>'
2014-09-09T22:04:51.723635+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on'
2014-09-09T22:04:51.723652+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
2014-09-09T22:04:51.723674+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
2014-09-09T22:04:51.723787+00:00 app[web.1]: from /app/config.ru:in `new'
2014-09-09T22:04:51.723802+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/server.rb:69:in `start'
2014-09-09T22:04:51.723812+00:00 app[web.1]: from bin/rails:8:in `<main>'
2014-09-09T22:04:51.755976+00:00 app[web.1]: => Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
2014-09-09T22:04:52.493206+00:00 heroku[web.1]: Process exited with status 1
2014-09-09T22:04:52.502892+00:00 heroku[web.1]: State changed from starting to crashed
2014-09-09T22:04:53.571153+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=powerful-scrubland-9818.herokuapp.com request_id=4999439e-9786-4555-a57a-933d885c2f1e fwd="54.82.145.140" dyno= connect= service= status=503 bytes=
2014-09-09T22:04:56.844339+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by alfonsopintos#gmail.com
2014-09-09T22:05:00.487482+00:00 heroku[run.1716]: Starting process with command `bundle exec rake db:migrate`
2014-09-09T22:05:00.448479+00:00 heroku[run.1716]: Awaiting client
2014-09-09T22:05:00.719502+00:00 heroku[run.1716]: State changed from starting to up
2014-09-09T22:05:04.780344+00:00 heroku[run.1716]: State changed from up to complete
2014-09-09T22:05:04.764625+00:00 heroku[run.1716]: Process exited with status 0
2014-09-09T22:05:09.700119+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by alfonsopintos#gmail.com
2014-09-09T22:05:13.261146+00:00 heroku[run.3019]: Starting process with command `bundle exec rake db:migrate`
2014-09-09T22:05:13.186468+00:00 heroku[run.3019]: Awaiting client
2014-09-09T22:05:13.583931+00:00 heroku[run.3019]: State changed from starting to up
2014-09-09T22:05:18.478766+00:00 heroku[run.3019]: Process exited with status 0
2014-09-09T22:05:18.497817+00:00 heroku[run.3019]: State changed from up to complete
2014-09-09T22:05:24.001387+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=powerful-scrubland-9818.herokuapp.com request_id=51427254-23d8-45b1-84ef-6d2327163829 fwd="50.206.104.35" dyno= connect= service= status=503 bytes=
2014-09-09T22:05:24.284415+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=powerful-scrubland-9818.herokuapp.com request_id=831be281-88d5-4d09-ba7c-034e163dd63b fwd="50.206.104.35" dyno= connect= service= status=503 bytes=
2014-09-09T22:05:25.591676+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=powerful-scrubland-9818.herokuapp.com request_id=e74f87d6-fe73-4b28-b63d-46c0d8c91dab fwd="50.206.104.35" dyno= connect= service= status=503 bytes=
2014-09-09T22:05:25.799197+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=powerful-scrubland-9818.herokuapp.com request_id=91257b4c-045e-4e59-a91c-e09a97cf5edb fwd="50.206.104.35" dyno= connect= service= status=503 bytes=
2014-09-09T22:05:53.416437+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=powerful-scrubland-9818.herokuapp.com request_id=a638a16c-4dd9-425e-9175-572845ac7732 fwd="50.206.104.35" dyno= connect= service= status=503 bytes=
2014-09-09T22:05:53.799400+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=powerful-scrubland-9818.herokuapp.com request_id=830cefb2-970f-4709-9c39-357bd03a60c7 fwd="50.206.104.35" dyno= connect= service= status=503 bytes=
Edit:Here is the exact syntax error. It is a devise controller. It has not been altered since installing devise.
2014-09-09T22:29:25.827490+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on'
2014-09-09T22:29:25.827493+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
2014-09-09T22:29:25.827503+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:346:in `eager_load!'
2014-09-09T22:29:25.827505+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `each'
2014-09-09T22:29:25.827456+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require': /app/app/controllers/users/all_controller.rb:1: class/module name must be CONSTANT (SyntaxError)
2014-09-09T22:29:25.827480+00:00 app[web.1]: class users::allController < Devise::allController
2014-09-09T22:29:25.827482+00:00 app[web.1]: ^
2014-09-09T22:29:25.827499+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `block in eager_load!'
2014-09-09T22:29:25.827497+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `each'
2014-09-09T22:29:25.827502+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `eager_load!'
2014-09-09T22:29:25.827528+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
Naming
Indeed, the error appears to be thus:
/app/app/controllers/users/all_controller.rb:1: class/module name must be CONSTANT (SyntaxError)
class users::allController < Devise::allController
The problem is that you need to use a Constant name to define / call your controller. Currently, you're not doing this.
Simply, you'll need to do the following:
#app/controllers/users/all_controller.rb
class Users::AllController < Devise::AllController
This is important because Ruby (which Rails is built on), and most other software frameworks / languages in general, call constants at least by using CamelCase; most using FULL_CAPITALIZATION.
Looking at your controller definition, you're calling users::allController - neither CamelCase or CAPITALIZED.
Devise
Something else you need to consider is the role of Devise.
I've never seen the Devise AllController anywhere. I may be wrong, but I don't think it has one.
What you're doing is try to superclass a class which likely doesn't exist. So even if you resolve the naming issues with your controller, I believe you'll still hit a wall with the actual class itself.
Because you don't show us the contents of all_controller, I cannot give you any further recommendations. However, I can say that I believe you'll hit another error leaving it as it is.
Looks like the issue might be with one of your controllers when it tries to load it
app/controllers/users/all_controller.rb:1: class/module name must be CONSTANT (SyntaxError)
I pulled that out of the log, if you post some of that code, may be able to help further, but start by checking there

Heroku Application Error Logs

Heroku Application error
I don't understand why this will be happen.Can anyone tell me why this will be happening...?
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
Logs
2014-02-25T18:00:50.602268+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2014-02-25T18:00:50.602268+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:54:in `run_initializers'
2014-02-25T18:00:50.602453+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application.rb:215:in `initialize!'
2014-02-25T18:00:50.602453+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-02-25T18:00:50.602453+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2014-02-25T18:00:50.603265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands/server.rb:75:in `start'
2014-02-25T18:00:50.603265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:76:in `block in <top (required)>'
2014-02-25T18:00:50.603265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:71:in `tap'
2014-02-25T18:00:50.603265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:71:in `<top (required)>'
2014-02-25T18:00:50.629589+00:00 app[web.1]: => Booting WEBrick
2014-02-25T18:00:50.629589+00:00 app[web.1]: => Rails 4.0.1 application starting in production on http://0.0.0.0:5185
2014-02-25T18:00:50.629589+00:00 app[web.1]: => Run `rails server -h` for more startup options
2014-02-25T18:00:50.629589+00:00 app[web.1]: => Ctrl-C to shutdown server
2014-02-25T18:00:50.629589+00:00 app[web.1]: Exiting
2014-02-25T18:00:50.602013+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application/finisher.rb:56:in `each'
2014-02-25T18:00:50.602013+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2014-02-25T18:00:50.602013+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `instance_exec'
2014-02-25T18:00:50.602268+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-02-25T18:00:50.602013+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:347:in `eager_load!'
2014-02-25T18:00:50.602453+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-02-25T18:00:50.602453+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2014-02-25T18:00:50.603265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
2014-02-25T18:00:50.602453+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-02-25T18:00:50.603265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2014-02-25T18:00:50.603448+00:00 app[web.1]: from bin/rails:4:in `<main>'
2014-02-25T18:00:50.603265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands/server.rb:48:in `app'
2014-02-25T18:00:50.603265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2014-02-25T18:00:50.602268+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `run'
2014-02-25T18:00:50.602453+00:00 app[web.1]: from /app/config.ru:in `new'
2014-02-25T18:00:50.602453+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2014-02-25T18:00:50.602453+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
2014-02-25T18:00:51.291322+00:00 heroku[web.1]: Process exited with status 1
2014-02-25T18:00:50.603265+00:00 app[web.1]: from bin/rails:4:in `require'
2014-02-25T18:00:50.603265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2014-02-25T18:00:50.602268+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2014-02-25T18:00:50.602453+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2014-02-25T18:00:51.758808+00:00 heroku[web.1]: State changed from starting to crashed
2014-02-25T18:00:51.748009+00:00 heroku[web.1]: Process exited with status 1
2014-02-25T18:00:54.250856+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=calm-badlands-3360.herokuapp.com request_id=84c4a7e9-b3b9-4fac-980a-979ead018666 fwd="90.1.28.3" dyno= connect= service= status=503 bytes=
2014-02-25T18:00:55.024660+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=calm-badlands-3360.herokuapp.com request_id=f93d18e0-8750-4448-b223-da8b57597c29 fwd="90.1.28.3" dyno= connect= service= status=503 bytes=
2014-02-25T18:01:47.519017+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=calm-badlands-3360.herokuapp.com request_id=3bd62614-b098-472e-bb9e-886d6da1f7d1 fwd="90.1.28.3" dyno= connect= service= status=503 bytes=
2014-02-25T18:01:50.506532+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/posts host=calm-badlands-3360.herokuapp.com request_id=6ade44f7-cfdf-4f77-8f7e-4f4ca7a34ab0 fwd="90.1.28.3" dyno= connect= service= status=503
bytes=
2014-02-25T18:02:12.017450+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=calm-badlands-3360.herokuapp.com request_id=e34e7e51-3cf5-4f24-a256-3406ee448477 fwd="90.1.28.3" dyno= connect= service= status=503 bytes=
2014-02-25T18:01:46.882235+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/posts host=calm-badlands-3360.herokuapp.com request_id=84c252b7-d3a0-4db9-ba9b-8d9364a01b36 fwd="90.1.28.3" dyno= connect= service= status=503
bytes=
2014-02-25T18:06:45.846671+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=calm-badlands-3360.herokuapp.com request_id=0460b082-c362-4582-bc2f-de0ab4da5969 fwd="90.1.28.3" dyno= connect= service= status=503 bytes=
2014-02-25T18:06:46.507092+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=calm-badlands-3360.herokuapp.com request_id=8ed0ec0e-ab22-48ca-a984-943cb8daa12a fwd="90.1.28.3" dyno= connect= service= status=503 bytes=
2014-02-25T18:09:27+00:00 heroku[slug-compiler]: Slug compilation started
2014-02-25T18:09:53.647138+00:00 heroku[api]: Deploy 16cb85e by cyril.declerck#gmail.com
2014-02-25T18:09:53.647227+00:00 heroku[api]: Release v7 created by cyril.declerck#gmail.com
2014-02-25T18:09:53+00:00 heroku[slug-compiler]: Slug compilation finished
2014-02-25T18:09:55.984536+00:00 heroku[web.1]: State changed from crashed to starting
2014-02-25T18:09:59.466185+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 34598 -e production`
2014-02-25T18:10:03.208591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:462:in `eager_load!'
2014-02-25T18:10:03.208591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2014-02-25T18:10:03.208796+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-02-25T18:10:03.208591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:464:in `each'
2014-02-25T18:10:03.208796+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `run'
2014-02-25T18:10:03.208591+00:00 app[web.1]: /app/app/uploaders/avatar_uploader.rb:3:in `<top (required)>': uninitialized constant CarrierWave (NameError)
2014-02-25T18:10:03.208591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:465:in `block (2 levels) in eager_load!'
2014-02-25T18:10:03.208591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:464:in `block in eager_load!'
2014-02-25T18:10:03.208591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:462:in `each'
2014-02-25T18:10:03.208796+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2014-02-25T18:10:03.209000+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application.rb:215:in `initialize!'
2014-02-25T18:10:03.208591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application/finisher.rb:56:in `each'
2014-02-25T18:10:03.209000+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2014-02-25T18:10:03.208591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:347:in `eager_load!'
2014-02-25T18:10:03.209000+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2014-02-25T18:10:03.209000+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:54:in `run_initializers'
2014-02-25T18:10:03.209553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2014-02-25T18:10:03.209553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2014-02-25T18:10:03.208796+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
2014-02-25T18:10:03.208796+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2014-02-25T18:10:03.208796+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2014-02-25T18:10:03.208796+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2014-02-25T18:10:03.209553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands/server.rb:48:in `app'
2014-02-25T18:10:03.208591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `instance_exec'
2014-02-25T18:10:03.209000+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-02-25T18:10:03.209000+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2014-02-25T18:10:03.209553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
2014-02-25T18:10:03.209553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2014-02-25T18:10:03.208796+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2014-02-25T18:10:03.208796+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2014-02-25T18:10:03.209000+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
2014-02-25T18:10:03.209553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:76:in `block in <top (required)>'
2014-02-25T18:10:03.209553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:71:in `tap'
2014-02-25T18:10:03.209000+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-02-25T18:10:03.209553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2014-02-25T18:10:03.209729+00:00 app[web.1]: from bin/rails:4:in `require'
2014-02-25T18:10:03.209000+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-02-25T18:10:03.209553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:71:in `<top (required)>'
2014-02-25T18:10:03.209729+00:00 app[web.1]: from bin/rails:4:in `<main>'
2014-02-25T18:10:03.209553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands/server.rb:75:in `start'
2014-02-25T18:10:03.209000+00:00 app[web.1]: from /app/config.ru:in `new'
2014-02-25T18:10:03.240675+00:00 app[web.1]: => Booting WEBrick
2014-02-25T18:10:03.240675+00:00 app[web.1]: => Rails 4.0.1 application starting in production on http://0.0.0.0:34598
2014-02-25T18:10:03.240675+00:00 app[web.1]: => Run `rails server -h` for more startup options
2014-02-25T18:10:03.240675+00:00 app[web.1]: => Ctrl-C to shutdown server
2014-02-25T18:10:03.240675+00:00 app[web.1]: Exiting
You are getting an error because your application cannot locate the CarrierWave module.
Please make sure that you have CarrierWave included in your Gemfile.
gem 'carrierwave'
UPDATE:
Regarding your error with the posts relation, you will have to migrate the Heroku database using the following command:
heroku run rake db:migrate

Getting Heroku to work with Rails Monogdb Thin

If anyone can point me in the right direction to help launch my rails app on Heroku, your help would be greatly appreciated.
My app works locally and uses the following:
rails 1.9.3
mongodb
mongoid
thin
bootstrap
The Heroku logs indicate that the app can't find action_mailer/railties.
2013-10-28T20:49:47.386564+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 43598`
2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:3:in `require'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `initialize'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:1:in `new'
2013-10-28T20:49:49.024650+00:00 app[web.1]: /app/config/application.rb:4:in `require': cannot load such file -- action_mailer/railtie (LoadError)
2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/config/application.rb:4:in `<top (required)>'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/config/environment.rb:4:in `require'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/config/environment.rb:4:in `<top (required)>'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `instance_eval'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:1:in `<main>'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-10-28T20:49:50.422948+00:00 heroku[web.1]: Process exited with status 1
2013-10-28T20:49:50.435779+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-28T20:50:56.997008+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:50:30.641927+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:50:56.451159+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:50:51.845854+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
I commented out in application.rb all the required railties files (not just action_mailer; none of them worked), but now I get another error. I think there is another problem and not railties that I am missing.
2013-10-28T20:53:51.478459+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 49593`
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:123:in `each'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:414:in `each'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application/railties.rb:8:in `all'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application/railties.rb:8:in `each'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/core_ext/string/inflections.rb:43:in `constantize'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:30:in `run'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:417:in `block (2 levels) in eager_load!'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:123:in `constantize'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:30:in `instance_exec'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:416:in `each'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:412:in `eager_load!'
2013-10-28T20:54:22.594177+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:124:in `block in constantize': uninitialized constant ActionMailer (NameError)
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:416:in `block in eager_load!'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:414:in `eager_load!'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:55:in `block in run_initializers'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.7/app/mailers/devise/mailer.rb:1:in `<top (required)>'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:54:in `run_initializers'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/config/environment.rb:7:in `<top (required)>'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application/finisher.rb:51:in `block in <module:Finisher>'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:54:in `each'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:3:in `require'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `initialize'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application.rb:96:in `initialize!'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `instance_eval'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:1:in `new'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:1:in `<main>'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1
/lib/thin/controllers/controller.rb:71:in `start'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-10-28T20:54:24.444797+00:00 heroku[web.1]: Process exited with status 1
2013-10-28T20:54:24.462296+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-28T20:54:26.402911+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:54:29.217590+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:54:29.959011+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:55:04.161060+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:55:05.013362+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:55:05.338644+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
Other issues I ran into:
bootstrap
asset precompiling
I addressed these by turning off precompile.
Please see my answer here.
In short: are you absolutely sure it works locally? Are you running it in exactly the same way it would run remotely?

Resources