Upgraded to Rails 5, Issue when pushing to Heroku - ruby-on-rails

I just upgraded my project to 5.1.4 and i fixed all the issues on local host. I am now pushing to my staging environment and im getting this error when pushing to Heroku.
remote: Removing activerecord-import (0.19.1)
remote: Removing actionmailer (4.2.3)
remote: -----> Installing node-v6.11.1-linux-x64
remote: -----> Detecting rake tasks
remote: sh: 2: Syntax error: Unterminated quoted string
remote: sh: 2: Syntax error: Unterminated quoted string
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run `$ bundle exec rake -P` against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! LoadError: cannot load such file -- netaddr
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/email_address-0.1.7/lib/email_address/exchanger.rb:2:in `<top (required)>'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/email_address-0.1.7/lib/email_address.rb:5:in `<module:EmailAddress>'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/email_address-0.1.7/lib/email_address.rb:2:in `<top (required)>'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:82:in `require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:82:in `block (2 levels) in require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:77:in `each'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:77:in `block in require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:66:in `each'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:66:in `require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/bundler-1.15.2/lib/bundler.rb:108:in `require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/config/application.rb:8:in `<top (required)>'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/Rakefile:4:in `require'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/Rakefile:4:in `<top (required)>'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/rake-12.3.0/lib/rake/rake_module.rb:29:in `load'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/rake-12.3.0/lib/rake/rake_module.rb:29:in `load_rakefile'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/rake-12.3.0/lib/rake/application.rb:703:in `raw_load_rakefile'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/rake-12.3.0/lib/rake/application.rb:104:in `block in load_rakefile'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/rake-12.3.0/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/rake-12.3.0/lib/rake/application.rb:103:in `load_rakefile'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/rake-12.3.0/lib/rake/application.rb:82:in `block in run'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/rake-12.3.0/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/rake-12.3.0/lib/rake/application.rb:80:in `run'
remote: ! /tmp/build_1857c4cf922c4c07f51dada80913d8f8/vendor/bundle/ruby/2.2.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
remote: ! vendor/bundle/bin/rake:17:in `load'
remote: ! vendor/bundle/bin/rake:17:in `<main>'
remote: !
remote: /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/lib/language_pack/helpers/rake_runner.rb:106:in `load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError)
remote: ensure you can run `$ bundle exec rake -P` against your app
remote: and using the production group of your Gemfile.
remote: rake aborted!
I tried running bundle exec rake -P like it suggests and i get no errors. Anyone know what this issue is or how i can start troubleshooting it?

I would suggest you to look at your /config/application.rb:8. The issue is probably there and it may be about netaddr file.
For troubleshooting you may execute rails console. It should throw you an error while with rails server it may ignore the errors in the code until it execute exactly that code.

Related

Rails/Heroku: Could not detect rake tasks

I'm facing an issue when trying to push my code to Heroku.
I don't understand why, I searched a lot and tried a lot of solution like adding "rake" as a Gem in the Gemfile, add linux and ruby platform to the lock file, install Gems with a lower bundler version, upgrading heroku buildpack, upgrading heroku stack, but none of these solved my issue.
When I push to Heroku, everything is doing good until bundle install phase, after this one, I get this error:
remote: ! Could not detect rake tasks
remote: ! ensure you can run `$ bundle exec rake -P` against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! LoadError: cannot load such file -- rspec/core
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:15:in `require'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:15:in `require'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/rswag-specs-2.5.1/lib/rswag/specs.rb:3:in `<main>'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/rswag-2.5.1/lib/rswag.rb:1:in `<main>'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:55:in `each'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:55:in `block in require'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:44:in `each'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:44:in `require'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler.rb:176:in `require'
remote: ! /tmp/build_7d354c0f/config/application.rb:7:in `<main>'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
remote: ! /tmp/build_7d354c0f/Rakefile:4:in `<main>'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:39:in `load'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:39:in `load'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:29:in `load_rakefile'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:710:in `raw_load_rakefile'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:104:in `block in load_rakefile'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:103:in `load_rakefile'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:82:in `block in run'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_7d354c0f/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:80:in `run'
remote: ! /tmp/build_7d354c0f/bin/rake:4:in `<main>'
remote: !
I hope someone has encountered the same problem and has the solution 😅
Thanks 👋

Could not able to deploy my rails project after Heroku-18 stack upgrade

While deploying i am getting this error. Upgraded rails to 5.2 and ruby to 2.5.1 after that while upgrading heroku stack i am getting the same erorr.
Anyone have answer for this please?
remote:
remote: Bundle completed (259.65s)
remote: Cleaning up the bundler cache.
remote: -----> Installing node-v10.15.3-linux-x64
remote: Detected manifest file, assuming assets were compiled locally
remote: -----> Detecting rails configuration
remote: -----> Detecting rake tasks
remote:
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run `$ bundle exec rake -P` against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! ActiveRecord::ConnectionNotEstablished: No connection pool with 'primary' found.
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:1032:in `retrieve_connection'
remote: !
/tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/connection_handling.rb:90:in `connection'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/model_schema.rb:466:in `load_schema!'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/attributes.rb:234:in `load_schema!'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/attribute_decorators.rb:51:in `load_schema!'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/model_schema.rb:459:in `block in load_schema'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/ruby-2.5.1/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/model_schema.rb:456:in `load_schema'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/model_schema.rb:336:in `columns_hash'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/dynamic_matchers.rb:60:in `block in valid?'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/dynamic_matchers.rb:60:in `each'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/dynamic_matchers.rb:60:in `all?'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/dynamic_matchers.rb:60:in `valid?'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/dynamic_matchers.rb:11:in `respond_to_missing?'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/scoping/named.rb:205:in `respond_to?'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/scoping/named.rb:205:in `valid_scope_name?'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/scoping/named.rb:180:in `scope'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/si-core_data-3.0.6/lib/si/core_data/user_service/user.rb:14:in `<class:User>'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/si-core_data-3.0.6/lib/si/core_data/user_service/user.rb:4:in `<module:UserService>'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/si-core_data-3.0.6/lib/si/core_data/user_service/user.rb:2:in `<module:SI>'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/si-core_data-3.0.6/lib/si/core_data/user_service/user.rb:1:in `<top (required)>'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/si-core_data-3.0.6/lib/si/core_data/user_service.rb:1:in `<top (required)>'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/si-core_data-3.0.6/lib/si/core_data.rb:17:in `<top (required)>'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:95:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:95:in `rescue in block in require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:72:in `block in require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `each'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler.rb:114:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/config/application.rb:7:in `<top (required)>'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/Rakefile:4:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/Rakefile:4:in `<top (required)>'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/rake_module.rb:29:in `load'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/rake_module.rb:29:in `load_rakefile'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:703:in `raw_load_rakefile'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:104:in `block in load_rakefile'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:103:in `load_rakefile'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:82:in `block in run'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:80:in `run'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
remote: ! vendor/bundle/bin/rake:29:in `load'
remote: ! vendor/bundle/bin/rake:29:in `<main>'
remote: !
remote: ! Caused by:
remote: ! LoadError: cannot load such file -- si-core_data
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:81:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:76:in `each'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:76:in `block in require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `each'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/bundler-2.0.2/lib/bundler.rb:114:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/config/application.rb:7:in `<top (required)>'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/Rakefile:4:in `require'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/Rakefile:4:in `<top (required)>'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/rake_module.rb:29:in `load'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/rake_module.rb:29:in `load_rakefile'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:703:in `raw_load_rakefile'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:104:in `block in load_rakefile'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:103:in `load_rakefile'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:82:in `block in run'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb:80:in `run'
remote: ! /tmp/build_8941f32f57c79f59e7ea337d348ba6f8/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
remote: ! vendor/bundle/bin/rake:29:in `load'
remote: ! vendor/bundle/bin/rake:29:in `<main>'
remote: !
remote: /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/helpers/rake_runner.rb:106:in `load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError)
I had this issue before, I think this is caused by your bundler version. Your local system runs the current version of bundler fine, heroku does not.
Try this locally:
gem install bundler -v 2.0.2
bundle update --bundler
and deploy that to heroku and see if it helps.

Heroku: NoMethodError: undefined method `timeout=' for Rack::Timeout:Class

Just updated a Rails 4.2 app to 5.2.1 and having trouble pushing it to Heroku. Errors below. I've tried what's recommended here and here by adding following to my rack_timeout.rb initializer.
Rails.application.config.middleware.insert_before Rack::Runtime, Rack::Timeout, service_timeout: 5
But that doesn't help. Thoughts?
$ git push heroku
...
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: rake aborted!
remote: NoMethodError: undefined method `timeout=' for Rack::Timeout:Class
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/config/initializers/rack_timeout.rb:2:in `<top (required)>'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `block in load'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:657:in `block in load_config_initializer'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:170:in `instrument'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:656:in `load_config_initializer'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:614:in `block (2 levels) in <class:Engine>'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:613:in `each'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:613:in `block in <class:Engine>'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `instance_exec'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `run'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:50:in `each'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:50:in `tsort_each_child'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:60:in `run_initializers'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/application.rb:361:in `initialize!'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/config/environment.rb:5:in `<top (required)>'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/application.rb:337:in `require_environment!'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/application.rb:520:in `block in run_tasks_blocks'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/airbrake-7.4.0/lib/airbrake/rake.rb:17:in `execute'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/airbrake-7.4.0/lib/airbrake/rake.rb:17:in `execute'
remote: /tmp/build_c66056b406a6fcdc37b9dde3124992ce/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote: Tasks: TOP => environment
remote: (See full trace by running task with --trace)
remote:
remote: !
remote: ! Precompiling assets failed.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
In config/initializers/rack_timeout.rb at line 2, you're doing Rack::Timeout.timeout =
This method doesn't exist anymore in the most recent versions of rack timeout. Since you upgraded, you need to change your code as well.
The rack-timeout readme indicates how you can configure rack-timeout with your rails app: https://github.com/heroku/rack-timeout#rails-apps-manually

LoadError: cannot load such file -- Base64

I've just deployed an application to Heroku, but I keep getting an error message that it cannot find Base64. Why would this be? What am I doing incorrectly?
(master) $ git push staging master
Counting objects: 1278, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (366/366), done.
Writing objects: 100% (1278/1278), 152.61 KiB | 0 bytes/s, done.
Total 1278 (delta 985), reused 1173 (delta 891)
[trim]
remote: Could not detect rake tasks
remote: ensure you can run `$ bundle exec rake -P` against your app with no environment variables present
remote: and using the production group of your Gemfile.
remote: rake aborted!
remote: LoadError: cannot load such file -- Base64
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/myob-api-0.0.4/lib/myob/api/client.rb:1:in `<top (required)>'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/myob-api-0.0.4/lib/myob/api.rb:10:in `<top (required)>'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/bundler-1.9.7/lib/bundler/runtime.rb:85:in `require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/bundler-1.9.7/lib/bundler/runtime.rb:85:in `rescue in block in require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/bundler-1.9.7/lib/bundler/runtime.rb:68:in `block in require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/config/application.rb:13:in `<top (required)>'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/Rakefile:4:in `require'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/Rakefile:4:in `<top (required)>'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
remote: /tmp/build_d648ede1219e96df07f2f2f514c64e7d/vendor/bundle/ruby/1.9.1/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
remote: vendor/bundle/bin/rake:16:in `load'
remote: vendor/bundle/bin/rake:16:in `<main>'
remote:
remote: ###### WARNING:
remote: Injecting plugin 'rails_log_stdout'
remote:
remote: ###### WARNING:
remote: Injecting plugin 'rails3_serve_static_assets'
remote:
remote: ###### WARNING:
remote: Add 'rails_12factor' gem to your Gemfile to skip plugin injection
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> web, worker
remote: Default types for Ruby -> console, rake
remote:
remote: -----> Compressing... done, 35.3MB
remote: -----> Launching... done, v611
remote: [app] deployed to Heroku
remote:
remote: ! Cedar-10 will reach end-of-life on November 4th, 2015.
remote: ! Upgrade to Cedar-14 at your earliest convenience.
remote: ! For more information, check out the following Dev Center article:
remote: ! https://devcenter.heroku.com/articles/cedar-14-migration
remote:
remote: Verifying deploy... done.
To git#heroku.com:app].git
7ce6443..acf1899 master -> master
Turns out that the MYOB-API gem had a typo. Base64 is not base64

heroku upload error Could not detect rake tasks

I am trying to upload my app to heroku for now its just pure design with no need for database connection. I keep on getting this error when uploading.
Your bundle is complete!
remote: Gems in the groups development and test were not installed.
remote: It was installed into ./vendor/bundle
remote: Bundle completed (1.06s)
remote: Cleaning up the bundler cache.
remote: Could not detect rake tasks
remote: ensure you can run `$ bundle exec rake -P` against your app with no environment variables present
remote: and using the production group of your Gemfile.
remote: rake aborted!
remote: URI::InvalidURIError: bad URI(is not URI?): ://user:pass#127.0.0.1/dbname
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/ruby-2.0.0/lib/ruby/2.0.0/uri/common.rb:176:in `split'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/ruby-2.0.0/lib/ruby/2.0.0/uri/common.rb:211:in `parse'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/ruby-2.0.0/lib/ruby/2.0.0/uri/common.rb:747:in `parse'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:35:in `initialize'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:279:in `new'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:279:in `resolve_url_connection'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:242:in `resolve_string_connection'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:267:in `resolve_hash_connection'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:228:in `resolve_connection'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:152:in `resolve'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:164:in `block in resolve_all'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:163:in `each'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/connection_specification.rb:163:in `resolve_all'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/connection_handling.rb:69:in `resolve'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/core.rb:46:in `configurations='
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/core.rb:48:in `block in <module:Core>'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/concern.rb:120:in `class_eval'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/concern.rb:120:in `append_features'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/base.rb:297:in `include'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/base.rb:297:in `<class:Base>'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/base.rb:282:in `<module:ActiveRecord>'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/base.rb:23:in `<top (required)>'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/railtie.rb:39:in `require'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.4/lib/active_record/railtie.rb:39:in `block in <class:Railtie>'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/railtie.rb:237:in `instance_exec'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/railtie.rb:237:in `block in run_tasks_blocks'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/railtie.rb:245:in `each'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/railtie.rb:245:in `each_registered_block'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/railtie.rb:237:in `run_tasks_blocks'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/application.rb:373:in `block in run_tasks_blocks'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine/railties.rb:13:in `each'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine/railties.rb:13:in `each'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/application.rb:373:in `run_tasks_blocks'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:449:in `load_tasks'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/Rakefile:6:in `<top (required)>'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
remote: /tmp/build_1f483b69aed84c97fc81983578b0b4e9/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
remote: vendor/bundle/bin/rake:16:in `load'
remote: vendor/bundle/bin/rake:16:in `<main>'
remote:
remote: ###### WARNING:
remote: No Procfile detected, using the default web server (webrick)
remote: https://devcenter.heroku.com/articles/ruby-default-web-server
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for Ruby -> console, rake, web, worker
remote:
remote: -----> Compressing... done, 30.6MB
remote: -----> Launching... done, v14
remote: https://teknolohiya.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/teknolohiya.git
897dd11..5ac0b58 master -> master
it finished and says upload complete but when trying to check the application it shows
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.
routes.rb
Rails.application.routes.draw do
#root
root 'home#index'
#welcome
get 'welcome' => 'welcome#index'
#about
get 'about' => 'about#index'
#contact
get 'contact' => 'contact#index'
end
I just encountered this and maybe not the issue for you but the problem is that Heroku is trying to call to the DATABASE_URL. I provisioned a free postgres db (even though we dont use it for the project) and was able to get around this problem.
Check the logs (heroku logs)
Check the network response using google chrome developer tool (right click, inspect element).
I am looking at this error
URI::InvalidURIError: bad URI(is not URI?): ://user:pass#127.0.0.1/dbname
I will guess it has to do with your routes. Show your routes.rb file Did you state the root of your site?
root 'welcome#index'

Resources