Having an issue with 'git push heroku master'


#1

Currently working on the Blogger application and am coming up with an issue with pushing it to heroku. I’ve pushed other applications to heroku and haven’t had an issue, but can’t figure out what’s exactly wrong here.

This is what my terminal output looks like:

Counting objects: 3225, done. Delta compression using up to 4 threads. Compressing objects: 100% (3137/3137), done. Writing objects: 100% (3225/3225), 7.41 MiB | 1.71 MiB/s, done. Total 3225 (delta 1806), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. remote: Detected buildpacks: Ruby,Node.js remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order remote: -----> Ruby app detected remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.6.4 remote: remote: ###### WARNING: remote: remote: You have the `.bundle/config` file checked into your repository remote: It contains local state like the location of the installed bundle remote: as well as configured git local gems, and other settings that should remote: not be shared between multiple checkouts of a single repo. Please remote: remove the `.bundle/` folder from your repo and add it to your `.gitignore` file. remote: https://devcenter.heroku.com/articles/bundler-configuration remote: remote: -----> Installing dependencies using bundler 1.17.3 remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. remote: Fetching gem metadata from https://rubygems.org/............ remote: Fetching rake 13.0.0 remote: Installing rake 13.0.0 remote: Fetching concurrent-ruby 1.1.5 remote: Fetching thread_safe 0.3.6 remote: Fetching minitest 5.12.2 remote: Installing thread_safe 0.3.6 remote: Installing minitest 5.12.2 remote: Installing concurrent-ruby 1.1.5 remote: Fetching builder 3.2.3 remote: Installing builder 3.2.3 remote: Fetching erubi 1.9.0 remote: Installing erubi 1.9.0 remote: Fetching mini_portile2 2.4.0 remote: Fetching crass 1.0.5 remote: Installing mini_portile2 2.4.0 remote: Installing crass 1.0.5 remote: Fetching rack 2.0.7 remote: Fetching nio4r 2.5.2 remote: Installing nio4r 2.5.2 with native extensions remote: Installing rack 2.0.7 remote: Fetching websocket-extensions 0.1.4 remote: Installing websocket-extensions 0.1.4 remote: Fetching mini_mime 1.0.2 remote: Installing mini_mime 1.0.2 remote: Fetching arel 9.0.0 remote: Installing arel 9.0.0 remote: Fetching mimemagic 0.3.3 remote: Fetching bcrypt 3.1.13 remote: Installing bcrypt 3.1.13 with native extensions remote: Installing mimemagic 0.3.3 remote: Fetching msgpack 1.3.1 remote: Installing msgpack 1.3.1 with native extensions remote: Using bundler 1.17.3 remote: Fetching climate_control 0.2.0 remote: Installing climate_control 0.2.0 remote: Fetching coffee-script-source 1.12.2 remote: Installing coffee-script-source 1.12.2 remote: Fetching execjs 2.7.0 remote: Installing execjs 2.7.0 remote: Fetching method_source 0.9.2 remote: Installing method_source 0.9.2 remote: Fetching thor 0.20.3 remote: Installing thor 0.20.3 remote: Fetching multipart-post 2.1.1 remote: Installing multipart-post 2.1.1 remote: Fetching ffi 1.11.1 remote: Installing ffi 1.11.1 with native extensions remote: Fetching jwt 2.2.1 remote: Installing jwt 2.2.1 remote: Fetching mime-types-data 3.2019.1009 remote: Installing mime-types-data 3.2019.1009 remote: Fetching multi_json 1.14.1 remote: Installing multi_json 1.14.1 remote: Fetching multi_xml 0.6.0 remote: Installing multi_xml 0.6.0 remote: Fetching oauth 0.5.4 remote: Installing oauth 0.5.4 remote: Fetching puma 3.12.1 remote: Installing puma 3.12.1 with native extensions remote: Fetching rb-fsevent 0.10.3 remote: Installing rb-fsevent 0.10.3 remote: Fetching tilt 2.0.10 remote: Installing tilt 2.0.10 remote: Fetching turbolinks-source 5.2.0 remote: Installing turbolinks-source 5.2.0 remote: Fetching tzinfo 1.2.5 remote: Installing tzinfo 1.2.5 remote: Fetching nokogiri 1.10.4 remote: Installing nokogiri 1.10.4 with native extensions remote: Fetching i18n 1.7.0 remote: Installing i18n 1.7.0 remote: Fetching websocket-driver 0.7.1 remote: Installing websocket-driver 0.7.1 with native extensions remote: Fetching mail 2.7.1 remote: Installing mail 2.7.1 remote: Fetching rack-test 1.1.0 remote: Installing rack-test 1.1.0 remote: Fetching sprockets 3.7.2 remote: Installing sprockets 3.7.2 remote: Fetching marcel 0.3.3 remote: Installing marcel 0.3.3 remote: Fetching terrapin 0.6.0 remote: Installing terrapin 0.6.0 remote: Fetching coffee-script 2.4.1 remote: Installing coffee-script 2.4.1 remote: Fetching faraday 0.17.0 remote: Fetching uglifier 4.2.0 remote: Installing faraday 0.17.0 remote: Installing uglifier 4.2.0 remote: Fetching bootsnap 1.4.5 remote: Fetching mime-types 3.3 remote: Installing bootsnap 1.4.5 with native extensions remote: Installing mime-types 3.3 remote: Fetching rb-inotify 0.10.0 remote: Installing rb-inotify 0.10.0 remote: Fetching turbolinks 5.2.1 remote: Installing turbolinks 5.2.1 remote: Fetching activesupport 5.2.3 remote: Installing activesupport 5.2.3 remote: Fetching loofah 2.3.1 remote: Installing loofah 2.3.1 remote: Fetching oauth2 1.4.2 remote: Installing oauth2 1.4.2 remote: Fetching sass-listen 4.0.0 remote: Installing sass-listen 4.0.0 remote: Fetching rails-dom-testing 2.0.3 remote: Installing rails-dom-testing 2.0.3 remote: Fetching globalid 0.4.2 remote: Installing globalid 0.4.2 remote: Fetching activemodel 5.2.3 remote: Installing activemodel 5.2.3 remote: Fetching jbuilder 2.9.1 remote: Installing jbuilder 2.9.1 remote: Fetching rails-html-sanitizer 1.3.0 remote: Installing rails-html-sanitizer 1.3.0 remote: Fetching sass 3.7.4 remote: Installing sass 3.7.4 remote: Fetching activejob 5.2.3 remote: Installing activejob 5.2.3 remote: Fetching activerecord 5.2.3 remote: Fetching paperclip 6.1.0 remote: Installing activerecord 5.2.3 remote: Installing paperclip 6.1.0 remote: Fetching actionview 5.2.3 remote: Installing actionview 5.2.3 remote: Fetching sorcery 0.14.0 remote: Installing sorcery 0.14.0 remote: Fetching actionpack 5.2.3 remote: Installing actionpack 5.2.3 remote: Fetching actioncable 5.2.3 remote: Fetching actionmailer 5.2.3 remote: Fetching activestorage 5.2.3 remote: Installing actioncable 5.2.3 remote: Installing actionmailer 5.2.3 remote: Installing activestorage 5.2.3 remote: Fetching railties 5.2.3 remote: Fetching sprockets-rails 3.2.1 remote: Installing railties 5.2.3 remote: Installing sprockets-rails 3.2.1 remote: Fetching coffee-rails 4.2.2 remote: Fetching sass-rails 5.1.0 remote: Fetching rails 5.2.3 remote: Installing coffee-rails 4.2.2 remote: Installing rails 5.2.3 remote: Installing sass-rails 5.1.0 remote: Bundle complete! 21 Gemfile dependencies, 73 gems now installed. remote: Gems in the groups development, test and production were not installed. remote: Bundled gems are installed into `./vendor/bundle` remote: Post-install message from i18n: remote: remote: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. remote: But that may break your application. remote: remote: Please check your Rails app for 'config.i18n.fallbacks = true'. remote: If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be remote: 'config.i18n.fallbacks = [I18n.default_locale]'. remote: If not, fallbacks will be broken in your app by I18n 1.1.x. remote: remote: For more info see: remote: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 remote: remote: Post-install message from paperclip: remote: ################################################## remote: # NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER # remote: ################################################## remote: remote: Paperclip is now compatible with aws-sdk-s3. remote: remote: If you are using S3 storage, aws-sdk-s3 requires you to make a few small remote: changes: remote: remote: * You must set the `s3_region` remote: * If you are explicitly setting permissions anywhere, such as in an initializer, remote: note that the format of the permissions changed from using an underscore to remote: using a hyphen. For example, `:public_read` needs to be changed to remote: `public-read`. remote: remote: For a walkthrough of upgrading from 4 to *5* (not 6) and aws-sdk >= 2.0 you can watch remote: http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5 remote: Post-install message from sass: remote: remote: Ruby Sass has reached end-of-life and should no longer be used. remote: remote: * If you use Sass as a command-line tool, we recommend using Dart Sass, the new remote: primary implementation: https://sass-lang.com/install remote: remote: * If you use Sass as a plug-in for a Ruby web framework, we recommend using the remote: sassc gem: https://github.com/sass/sassc-ruby#readme remote: remote: * For more details, please refer to the Sass blog: remote: https://sass-lang.com/blog/posts/7828841 remote: remote: Post-install message from sorcery: remote: As of version 1.0 oauth/oauth2 won't be automatically bundled so you may need to add those dependencies to your Gemfile. remote: You may need oauth2 if you use external providers such as any of these: https://github.com/Sorcery/sorcery/tree/master/lib/sorcery/providers remote: Bundle completed (38.72s) remote: Cleaning up the bundler cache. remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. remote: -----> Installing node-v10.15.3-linux-x64 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: rake aborted! remote: LoadError: Error loading the 'postgresql' Active Record adapter. Missing a gem it depends on? pg is not part of the bundle. Add it to your Gemfile. remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:408:in `block (2 levels) in replace_gem' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:4:in `<main>' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:191:in `spec' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:956:in `establish_connection' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_handling.rb:60:in `establish_connection' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/railtie.rb:136:in `block (2 levels) in <class:Railtie>' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:43:in `block in on_load' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:42:in `each' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:42:in `on_load' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/railtie.rb:132:in `block in <class:Railtie>' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `instance_exec' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `run' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in `block in run_initializers' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in `run_initializers' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:361:in `initialize!' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/config/environment.rb:5:in `<main>' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:337:in `require_environment!' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:520:in `block in run_tasks_blocks' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/rake-13.0.0/exe/rake:27:in `<top (required)>' remote: remote: Caused by: remote: Gem::LoadError: pg is not part of the bundle. Add it to your Gemfile. remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:408:in `block (2 levels) in replace_gem' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:4:in `<main>' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:191:in `spec' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:956:in `establish_connection' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_handling.rb:60:in `establish_connection' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/railtie.rb:136:in `block (2 levels) in <class:Railtie>' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:43:in `block in on_load' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:42:in `each' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:42:in `on_load' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/railtie.rb:132:in `block in <class:Railtie>' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `instance_exec' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `run' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in `block in run_initializers' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in `run_initializers' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:361:in `initialize!' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/config/environment.rb:5:in `<main>' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:337:in `require_environment!' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:520:in `block in run_tasks_blocks' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define' remote: /tmp/build_4d3ff9a980ab2995fb4bdd6e920de928/vendor/bundle/ruby/2.6.0/gems/rake-13.0.0/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 remote: Verifying deploy... remote: remote: ! Push rejected to floating-wave-64967. remote: To https://git.heroku.com/floating-wave-64967.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/floating-wave-64967.git'

The main things I’ve searched for answers for at is the error here:

LoadError: Error loading the 'postgresql' Active Record adapter. Missing a gem it depends on? pg is not part of the bundle. Add it to your Gemfile. 

and here:

! [remote rejected] master -> master (pre-receive hook declined)

I already have postgresql in my Gemfile and also made sure it pointed to the right version of postgresql, but can’t figure out how to make this work.


#2

It could be that when you ran bundle install --without production it created a file in the rails project folder that basically mean everytime bundle is ran on it’s own it will try and install the gems not listed for production only. Since the pg gem is only for production it doesn’t get installed.

In teh rails project folder enable viewing hidden files and look for a folder called .bundle

If you open that folder and there is a file inside it just delete the file.

Then you need to

git add .
git commit -m "remove bundle config"
git push heroku master

in the terminal