mongoid / mongoid-slug

Generates a URL slug/permalink based on fields in a Mongoid-based model.
https://github.com/mongoid/mongoid-slug
MIT License
492 stars 164 forks source link

Heroku Deploy Fails #259

Closed Daltron closed 5 years ago

Daltron commented 5 years ago

The app works perfectly fine locally but I am getting the following error when deploying to Heroku and have not had any luck fixing it. Any help would be appreciated!

Heroku Buildlog

Bundle completed (192.19s)
       Cleaning up the bundler cache.
-----> Installing node-v10.15.3-linux-x64
-----> Detecting rake tasks
 !
 !     Could not detect rake tasks
 !     ensure you can run `$ bundle exec rake -P` against your app
 !     and using the production group of your Gemfile.
 !     rake aborted!
 !     URI::InvalidURIError: bad URI(is not URI?): ://user:pass@127.0.0.1/dbname
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/ruby-2.6.1/lib/ruby/2.6.0/uri/rfc2396_parser.rb:177:in `split'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/ruby-2.6.1/lib/ruby/2.6.0/uri/rfc2396_parser.rb:212:in `parse'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:40:in `initialize'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:282:in `new'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:282:in `resolve_url_connection'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:270:in `resolve_hash_connection'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:245:in `resolve_connection'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:143:in `resolve'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:163:in `block in resolve_all'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:162:in `each'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:162:in `resolve_all'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_handling.rb:72:in `resolve'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/core.rb:54:in `configurations='
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/core.rb:56:in `block in <module:Core>'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/concern.rb:122:in `class_eval'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/concern.rb:122:in `append_features'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/base.rb:293:in `include'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/base.rb:293:in `<class:Base>'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/base.rb:277:in `<module:ActiveRecord>'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/base.rb:27:in `<main>'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex/acts_as_url/adapter/active_record.rb:18:in `orm_class'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex/acts_as_url/adapter/base.rb:52:in `loadable?'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex/acts_as_url/adapter.rb:17:in `block in load_available'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex/acts_as_url/adapter.rb:15:in `each'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex/acts_as_url/adapter.rb:15:in `load_available'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex.rb:13:in `<main>'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/mongoid-slug-6.0.0/lib/mongoid/slug.rb:2:in `<main>'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:95:in `rescue in block in require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:72:in `block in require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `each'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler.rb:114:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/config/application.rb:17:in `<top (required)>'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/Rakefile:4:in `require_relative'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/Rakefile:4:in `<top (required)>'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load_rakefile'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:703:in `raw_load_rakefile'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:104:in `block in load_rakefile'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:103:in `load_rakefile'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:82:in `block in run'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
 !     vendor/bundle/bin/rake:29:in `load'
 !     vendor/bundle/bin/rake:29:in `<main>'
 !     
 !     Caused by:
 !     LoadError: cannot load such file -- mongoid-slug
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:33:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:76:in `each'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:76:in `block in require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `each'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler.rb:114:in `require'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/config/application.rb:17:in `<top (required)>'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/Rakefile:4:in `require_relative'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/Rakefile:4:in `<top (required)>'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load_rakefile'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:703:in `raw_load_rakefile'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:104:in `block in load_rakefile'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:103:in `load_rakefile'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:82:in `block in run'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
 !     /tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
 !     vendor/bundle/bin/rake:29:in `load'
 !     vendor/bundle/bin/rake:29:in `<main>'
 !
/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)
ensure you can run `$ bundle exec rake -P` against your app
and using the production group of your Gemfile.
rake aborted!
URI::InvalidURIError: bad URI(is not URI?): ://user:pass@127.0.0.1/dbname
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/ruby-2.6.1/lib/ruby/2.6.0/uri/rfc2396_parser.rb:177:in `split'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/ruby-2.6.1/lib/ruby/2.6.0/uri/rfc2396_parser.rb:212:in `parse'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:40:in `initialize'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:282:in `new'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:282:in `resolve_url_connection'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:270:in `resolve_hash_connection'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:245:in `resolve_connection'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:143:in `resolve'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:163:in `block in resolve_all'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:162:in `each'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/connection_specification.rb:162:in `resolve_all'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_handling.rb:72:in `resolve'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/core.rb:54:in `configurations='
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/core.rb:56:in `block in <module:Core>'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/concern.rb:122:in `class_eval'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/concern.rb:122:in `append_features'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/base.rb:293:in `include'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/base.rb:293:in `<class:Base>'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/base.rb:277:in `<module:ActiveRecord>'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/base.rb:27:in `<main>'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex/acts_as_url/adapter/active_record.rb:18:in `orm_class'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex/acts_as_url/adapter/base.rb:52:in `loadable?'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex/acts_as_url/adapter.rb:17:in `block in load_available'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex/acts_as_url/adapter.rb:15:in `each'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex/acts_as_url/adapter.rb:15:in `load_available'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/stringex-2.8.5/lib/stringex.rb:13:in `<main>'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/mongoid-slug-6.0.0/lib/mongoid/slug.rb:2:in `<main>'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/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'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:95:in `rescue in block in require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:72:in `block in require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `each'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler.rb:114:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/config/application.rb:17:in `<top (required)>'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/Rakefile:4:in `require_relative'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/Rakefile:4:in `<top (required)>'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load_rakefile'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:703:in `raw_load_rakefile'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:104:in `block in load_rakefile'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:103:in `load_rakefile'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:82:in `block in run'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
vendor/bundle/bin/rake:29:in `load'
vendor/bundle/bin/rake:29:in `<main>'
Caused by:
LoadError: cannot load such file -- mongoid-slug
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:33:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:76:in `each'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:76:in `block in require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `each'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler.rb:114:in `require'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/config/application.rb:17:in `<top (required)>'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/Rakefile:4:in `require_relative'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/Rakefile:4:in `<top (required)>'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load_rakefile'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:703:in `raw_load_rakefile'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:104:in `block in load_rakefile'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:103:in `load_rakefile'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:82:in `block in run'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
/tmp/build_6ddd92e3779902067e3bef3a3b93cd2d/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
vendor/bundle/bin/rake:29:in `load'
vendor/bundle/bin/rake:29:in `<main>'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/ruby.rb:880:in `rake'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/rails4.rb:84:in `block (2 levels) in run_assets_precompile_rake_task'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:134:in `log'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/rails4.rb:78:in `block in run_assets_precompile_rake_task'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/vendor/ruby/heroku-18/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:16:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:48:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:44:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/rails4.rb:77:in `run_assets_precompile_rake_task'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/ruby.rb:107:in `block (2 levels) in compile'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/ruby.rb:901:in `allow_git'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/ruby.rb:101:in `block in compile'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/vendor/ruby/heroku-18/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:16:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:48:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:44:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/ruby.rb:90:in `compile'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/rails2.rb:62:in `block in compile'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/vendor/ruby/heroku-18/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:16:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:48:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:44:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/rails2.rb:60:in `compile'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/rails3.rb:42:in `block in compile'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/vendor/ruby/heroku-18/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:16:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:48:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:44:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/rails3.rb:41:in `compile'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/rails4.rb:41:in `block in compile'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/vendor/ruby/heroku-18/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:16:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:48:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:44:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/rails4.rb:40:in `compile'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/bin/support/ruby_compile:20:in `block (2 levels) in <main>'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/base.rb:134:in `log'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/bin/support/ruby_compile:19:in `block in <main>'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:35:in `block in trace'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/vendor/ruby/heroku-18/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:16:in `instrument'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:35:in `trace'
    from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/bin/support/ruby_compile:15:in `<main>'
 !     Push rejected, failed to compile Ruby app.
 !     Push failed

Gemfile

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.6.1'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.1'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'mini_racer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', require: false

gem 'mongoid', '~> 7.0.5'
gem 'mongoid-slug', '~> 6.0.0'
gem 'font-awesome-sass', '~> 5.9.0'
gem 'loaf'
gem 'jquery-rails'
gem 'sitemap_generator'
gem 'sidekiq', '5.2.1'
gem 'sidekiq-cron', '~> 1.0.0'
gem 'settingslogic'
gem 'httparty'

group :development, :test do
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
  gem 'rspec-rails', '~> 3.5'
  gem 'mongoid-rspec'
end

group :development do
  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '>= 3.0.5', '< 3.2'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
  gem 'faker'
end

group :test do
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '>= 2.15'
  gem 'rails-controller-testing'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

bundle exec rake -P also works perfectly locally.

The error message that stands out to me is Caused by: LoadError: cannot load such file -- mongoid-slug.

Once again, any help/insight would be greatly appreciated!

Daltron commented 5 years ago

Adding the pg gem to my Gemfile fixed the issue. I really don't understand why but this issue does not appear related to mongoid-slug so I am going to mark it as closed 😄

dblock commented 5 years ago

You are unlikely to be using PostgreSQL and MongoDB in the same problem, so you do not want to add pg to your application. I suspect your production configuration is incorrect and tries to default to PostgreSQL.

Daltron commented 5 years ago

@dblock Thanks for the response. This is what my production configuration looks like.

Rails.application.configure do
  # Settings specified here will take precedence over those in config/application.rb.

  # Code is not reloaded between requests.
  config.cache_classes = true

  # Eager load code on boot. This eager loads most of Rails and
  # your application in memory, allowing both threaded web servers
  # and those relying on copy on write to perform better.
  # Rake tasks automatically ignore this option for performance.
  config.eager_load = true

  # Full error reports are disabled and caching is turned on.
  config.consider_all_requests_local       = false
  config.action_controller.perform_caching = true

  # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
  # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
  # config.require_master_key = true

  # Disable serving static files from the `/public` folder by default since
  # Apache or NGINX already handles this.
  config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?

  # Compress JavaScripts and CSS.
  config.assets.js_compressor = :uglifier
  config.assets.css_compressor = :sass

  # Do not fallback to assets pipeline if a precompiled asset is missed.
  config.assets.compile = true

  # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb

  # Enable serving of images, stylesheets, and JavaScripts from an asset server.
  # config.action_controller.asset_host = 'http://assets.example.com'

  # Specifies the header that your server uses for sending files.
  # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX

  # Store uploaded files on the local file system (see config/storage.yml for options)
  # config.active_storage.service = :local

  # Mount Action Cable outside main process or domain
  # config.action_cable.mount_path = nil
  # config.action_cable.url = 'wss://example.com/cable'
  # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]

  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
  # config.force_ssl = true

  # Use the lowest log level to ensure availability of diagnostic information
  # when problems arise.
  config.log_level = :debug

  # Prepend all log lines with the following tags.
  config.log_tags = [ :request_id ]

  # Use a different cache store in production.
  # config.cache_store = :mem_cache_store

  # Use a real queuing backend for Active Job (and separate queues per environment)
  # config.active_job.queue_adapter     = :resque
  # config.active_job.queue_name_prefix = "vayda_jane_#{Rails.env}"

  config.action_mailer.perform_caching = false

  # Ignore bad email addresses and do not raise email delivery errors.
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
  config.action_mailer.raise_delivery_errors = true

  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  # the I18n.default_locale when a translation cannot be found).
  config.i18n.fallbacks = true

  # Send deprecation notices to registered listeners.
  config.active_support.deprecation = :notify

  # Use default logging formatter so that PID and timestamp are not suppressed.
  config.log_formatter = ::Logger::Formatter.new

  # Use a different logger for distributed setups.
  # require 'syslog/logger'
  # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')

  if ENV["RAILS_LOG_TO_STDOUT"].present?
    logger           = ActiveSupport::Logger.new(STDOUT)
    logger.formatter = config.log_formatter
    config.logger    = ActiveSupport::TaggedLogging.new(logger)
  end

end

I can not tell what is keeping a reference to PostgreSQL as I have followed several outlines on how to remove active record completely from the picture. But it appears there is still something holding on to it.

dblock commented 5 years ago

What's in your database.yml?

Daltron commented 5 years ago

@dblock I do not have a database.yml file as I deleted it.

dblock commented 5 years ago

Good ;)

Look at "Getting Rid of Active Record" in https://mongoid.github.io/old/en/mongoid/docs/installation.html and make sure you've done that.

Daltron commented 5 years ago

Thank you so much! Will report back if I am able to remove pg completely!

Daltron commented 5 years ago

After following that guide to its entirety (at least I think), there is still something causing my heroku builds to fail without the pg gem. I removed

require "active_model/railtie"
require "active_job/railtie"

from my application.rb file which appeared to be the only thing I haven't already done in that guide.

If there is anything else you could think of that could be the culprit, it would be greatly appreciated.

application.rb

require_relative 'boot'

require "rails"
# Pick the frameworks you want:
require "active_storage/engine"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_cable/engine"
require "rails/test_unit/railtie"
require 'rails/mongoid'

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module VaydaJane
  class Application < Rails::Application
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults 5.2
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration can go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded after loading
    # the framework and any gems in your application.
    config.active_job.queue_adapter = :sidekiq
    config.exceptions_app = self.routes

  end
end

production.rb

Rails.application.configure do
  # Settings specified here will take precedence over those in config/application.rb.

  # Code is not reloaded between requests.
  config.cache_classes = true

  # Eager load code on boot. This eager loads most of Rails and
  # your application in memory, allowing both threaded web servers
  # and those relying on copy on write to perform better.
  # Rake tasks automatically ignore this option for performance.
  config.eager_load = true

  # Full error reports are disabled and caching is turned on.
  config.consider_all_requests_local       = false
  config.action_controller.perform_caching = true

  # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
  # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
  # config.require_master_key = true

  # Disable serving static files from the `/public` folder by default since
  # Apache or NGINX already handles this.
  config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?

  # Compress JavaScripts and CSS.
  config.assets.js_compressor = :uglifier
  config.assets.css_compressor = :sass

  # Do not fallback to assets pipeline if a precompiled asset is missed.
  config.assets.compile = true

  # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb

  # Enable serving of images, stylesheets, and JavaScripts from an asset server.
  # config.action_controller.asset_host = 'http://assets.example.com'

  # Specifies the header that your server uses for sending files.
  # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX

  # Store uploaded files on the local file system (see config/storage.yml for options)
  # config.active_storage.service = :local

  # Mount Action Cable outside main process or domain
  # config.action_cable.mount_path = nil
  # config.action_cable.url = 'wss://example.com/cable'
  # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]

  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
  # config.force_ssl = true

  # Use the lowest log level to ensure availability of diagnostic information
  # when problems arise.
  config.log_level = :debug

  # Prepend all log lines with the following tags.
  config.log_tags = [ :request_id ]

  # Use a different cache store in production.
  # config.cache_store = :mem_cache_store

  # Use a real queuing backend for Active Job (and separate queues per environment)
  # config.active_job.queue_adapter     = :resque
  # config.active_job.queue_name_prefix = "vayda_jane_#{Rails.env}"

  config.action_mailer.perform_caching = false

  # Ignore bad email addresses and do not raise email delivery errors.
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
  config.action_mailer.raise_delivery_errors = true

  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  # the I18n.default_locale when a translation cannot be found).
  config.i18n.fallbacks = true

  # Send deprecation notices to registered listeners.
  config.active_support.deprecation = :notify

  # Use default logging formatter so that PID and timestamp are not suppressed.
  config.log_formatter = ::Logger::Formatter.new

  # Use a different logger for distributed setups.
  # require 'syslog/logger'
  # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')

  if ENV["RAILS_LOG_TO_STDOUT"].present?
    logger           = ActiveSupport::Logger.new(STDOUT)
    logger.formatter = config.log_formatter
    config.logger    = ActiveSupport::TaggedLogging.new(logger)
  end

end
dblock commented 5 years ago

If you put the project up on Github I can take a look when I have a moment, but no promises.

Daltron commented 5 years ago

The only other thing I can think of is that I am using mongoid-rspec for my tests and I was receiving an error like this:

Failure/Error: raise ConnectionNotEstablished, "No connection pool with '#{spec_name}' found." unless pool

      ActiveRecord::ConnectionNotEstablished:
        No connection pool with 'primary' found.

So in order to get around this, I found a solution that caused me to create this file:

module ActiveRecord::TestFixtures
  def before_setup
    super
  end

  def after_teardown
    super
  end
end

Which ended up resolving the issue. This has to be it somehow in my opinion.

dblock commented 5 years ago

You're still importing ActiveRecord somewhere and this shouldn't be necessary.

Daltron commented 5 years ago

I had active storage still hanging around. Problem solved. 😄 Thanks again for the help!