Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when activerecord is detected but DATABASE_URL isn't set before rake assets:precompile #319

Open
schneems opened this issue Sep 6, 2024 · 1 comment

Comments

@schneems
Copy link
Contributor

schneems commented Sep 6, 2024

Original:

Deploying without a database and no config/database.yml says the error is the file is missing instead of no DB provisioned

Expected

When I push a rails app without a database that the output either directly says that's the problem or at least notes it like "No DATABASE_URL and no config/database.yml found"

Actual

Enumerating objects: 16058, done.
Counting objects: 100% (16058/16058), done.
Delta compression using up to 12 threads
Compressing objects: 100% (5650/5650), done.
Writing objects: 100% (16058/16058), 10.35 MiB | 10.07 MiB/s, done.
Total 16058 (delta 10205), reused 16056 (delta 10204), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (10205/10205), done.
remote: Updated 472 paths from 3609570
remote: Compressing source files... done.
remote: Building source:
remote: Waiting on build...
remote: Waiting on build... (elapsed: 19s)
remote: Waiting on build... (elapsed: 36s)
remote: Waiting on build... (elapsed: 1m1s)
remote: Using builder: mysterious-springs-88800/heroku/builder:24
remote: Extracting source
remote: Image with name "mysterious-springs-88800/builds" not found
remote: 4 of 5 buildpacks participating
remote: heroku/nodejs-engine 3.2.13
remote: heroku/nodejs-yarn   3.2.13
remote: heroku/ruby          3.0.0
remote: heroku/procfile      3.1.2
remote:
remote: [Heroku Node.js Engine Buildpack]
remote:
remote: [Checking Node.js version]
remote: Node.js version not specified, using 20.x
remote: Resolved Node.js version: 20.17.0
remote:
remote: [Installing Node.js distribution]
remote: Downloading Node.js 20.17.0 (linux-arm64) from https://nodejs.org/download/release/v20.17.0/node-v20.17.0-linux-arm64.tar.gz
remote: Verifying checksum
remote: Extracting Node.js 20.17.0 (linux-arm64)
remote: Installing Node.js 20.17.0 (linux-arm64)
remote:
remote: [Detecting yarn CLI version to install]
remote: No yarn engine range detected in package.json, using default ({DEFAULT_YARN_REQUIREMENT})
remote: Resolved yarn CLI version: 1.22.22
remote:
remote: [Installing yarn CLI]
remote: Downloading yarn 1.22.22
remote: Extracting yarn 1.22.22
remote: Installing yarn 1.22.22
remote: Yarn CLI operating in yarn 1.22.22 mode.
remote:
remote: [Setting up yarn dependency cache]
remote: yarn config v1.22.22
remote: success Set "cache-folder" to "/layers/heroku_nodejs-yarn/deps/cache".
remote: Done in 0.03s.
remote:
remote: [Installing dependencies]
remote: yarn install v1.22.22
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: [3/4] Linking dependencies...
remote: [4/4] Building fresh packages...
remote: Done in 0.05s.
remote:
remote: [Running scripts]
remote: No build scripts found
remote:
remote: # Heroku Ruby Buildpack
remote:
remote: - Metrics agent
remote:   - Skipping install (`barnes` gem not found)
remote: - Ruby version `3.1.4` from `Gemfile.lock`
remote:   - Installing .... (1.636s)
remote: - Bundler version `2.3.23` from `Gemfile.lock`
remote:   - Running `gem install bundler --version 2.3.23` ... (0.603s)
remote: - Bundle install
remote:   - Running `BUNDLE_BIN="/layers/heroku_ruby/gems/bin" BUNDLE_CLEAN="1" BUNDLE_DEPLOYMENT="1" BUNDLE_GEMFILE="/workspace/Gemfile" BUNDLE_PATH="/layers/heroku_ruby/gems" BUNDLE_WITHOUT="development:test" bundle install`
remote:
remote:       Fetching gem metadata from https://rubygems.org/.........
remote:       Fetching rake 13.1.0
remote:       Installing rake 13.1.0
remote:       Fetching minitest 5.20.0
remote:       Fetching builder 3.2.4
remote:       Fetching erubi 1.12.0
remote:       Fetching racc 1.7.1
remote:       Fetching crass 1.0.6
remote:       Fetching rack 2.2.8
remote:       Fetching concurrent-ruby 1.2.2
remote:       Fetching mini_portile2 2.8.5
remote:       Installing crass 1.0.6
remote:       Installing erubi 1.12.0
remote:       Installing builder 3.2.4
remote:       Installing mini_portile2 2.8.5
remote:       Installing racc 1.7.1 with native extensions
remote:       Installing minitest 5.20.0
remote:       Fetching nio4r 2.5.9
remote:       Installing rack 2.2.8
remote:       Fetching websocket-extensions 0.1.5
remote:       Installing websocket-extensions 0.1.5
remote:       Installing nio4r 2.5.9 with native extensions
remote:       Installing concurrent-ruby 1.2.2
remote:       Fetching marcel 1.0.2
remote:       Fetching mini_mime 1.1.5
remote:       Installing mini_mime 1.1.5
remote:       Fetching timeout 0.3.0
remote:       Installing marcel 1.0.2
remote:       Fetching public_suffix 5.0.3
remote:       Installing timeout 0.3.0
remote:       Fetching ast 2.4.2
remote:       Installing public_suffix 5.0.3
remote:       Fetching execjs 2.8.1
remote:       Installing ast 2.4.2
remote:       Fetching aws-eventstream 1.2.0
remote:       Installing execjs 2.8.1
remote:       Installing aws-eventstream 1.2.0
remote:       Fetching aws-partitions 1.648.0
remote:       Fetching jmespath 1.6.1
remote:       Fetching babel-source 5.8.35
remote:       Installing aws-partitions 1.648.0
remote:       Installing jmespath 1.6.1
remote:       Fetching bcrypt 3.1.19
remote:       Fetching bluecloth 2.2.0
remote:       Fetching msgpack 1.5.6
remote:       Installing bcrypt 3.1.19 with native extensions
remote:       Fetching thor 1.3.0
remote:       Installing bluecloth 2.2.0 with native extensions
remote:       Installing msgpack 1.5.6 with native extensions
remote:       Installing thor 1.3.0
remote:       Installing babel-source 5.8.35
remote:       Using bundler 2.3.23
remote:       Fetching coffee-script-source 1.12.2
remote:       Fetching method_source 1.0.0
remote:       Fetching zeitwerk 2.6.12
remote:       Installing method_source 1.0.0
remote:       Installing coffee-script-source 1.12.2
remote:       Installing zeitwerk 2.6.12
remote:       Fetching connection_pool 2.4.1
remote:       Fetching dalli 3.2.6
remote:       Installing connection_pool 2.4.1
remote:       Fetching orm_adapter 0.5.0
remote:       Installing dalli 3.2.6
remote:       Fetching excon 0.71.0
remote:       Installing orm_adapter 0.5.0
remote:       Fetching multipart-post 2.3.0
remote:       Fetching ffi 1.15.4
remote:       Installing excon 0.71.0
remote:       Fetching flamegraph 0.9.5
remote:       Installing multipart-post 2.3.0
remote:       Fetching rrrretry 1.0.0
remote:       Fetching hashie 5.0.0
remote:       Installing flamegraph 0.9.5
remote:       Installing rrrretry 1.0.0
remote:       Installing hashie 5.0.0
remote:       Fetching htmlentities 4.3.4
remote:       Installing ffi 1.15.4 with native extensions
remote:       Fetching jwt 2.7.1
remote:       Installing jwt 2.7.1
remote:       Installing htmlentities 4.3.4
remote:       Fetching rexml 3.2.6
remote:       Fetching local_time 2.1.0
remote:       Fetching matrix 0.4.2
remote:       Installing matrix 0.4.2
remote:       Fetching mime-types-data 3.2019.1009
remote:       Installing rexml 3.2.6
remote:       Installing local_time 2.1.0
remote:       Fetching multi_xml 0.6.0
remote:       Installing multi_xml 0.6.0
remote:       Using ruby2_keywords 0.0.5
remote:       Fetching rb-fsevent 0.11.0
remote:       Fetching normalize-rails 8.0.1
remote:       Installing mime-types-data 3.2019.1009
remote:       Fetching version_gem 1.1.3
remote:       Installing normalize-rails 8.0.1
remote:       Fetching oj 3.13.21
remote:       Fetching optimist 3.0.1
remote:       Installing rb-fsevent 0.11.0
remote:       Installing version_gem 1.1.3
remote:       Installing oj 3.13.21 with native extensions
remote:       Fetching pdf-core 0.9.0
remote:       Installing optimist 3.0.1
remote:       Fetching pg 1.2.3
remote:       Installing pdf-core 0.9.0
remote:       Fetching ttfunk 1.7.0
remote:       Installing pg 1.2.3 with native extensions
remote:       Installing ttfunk 1.7.0
remote:       Fetching rack-timeout 0.6.3
remote:       Installing rack-timeout 0.6.3
remote:       Fetching rails-autoscale-core 1.1.0
remote:       Installing rails-autoscale-core 1.1.0
remote:       Fetching render_async 2.1.11
remote:       Fetching tilt 2.0.11
remote:       Installing render_async 2.1.11
remote:       Installing tilt 2.0.11
remote:       Fetching unf_ext 0.0.7.7
remote:       Fetching temple 0.8.2
remote:       Installing temple 0.8.2
remote:       Fetching stackprof 0.2.17
remote:       Installing unf_ext 0.0.7.7 with native extensions
remote:       Installing stackprof 0.2.17 with native extensions
remote:       Fetching webrick 1.7.0
remote:       Fetching will_paginate 4.0.0
remote:       Installing webrick 1.7.0
remote:       Fetching sitemap_generator 6.1.2
remote:       Installing will_paginate 4.0.0
remote:       Fetching websocket-driver 0.7.6
remote:       Fetching net-protocol 0.1.3
remote:       Installing sitemap_generator 6.1.2
remote:       Fetching aws-sigv4 1.5.2
remote:       Installing websocket-driver 0.7.6 with native extensions
remote:       Installing net-protocol 0.1.3
remote:       Installing aws-sigv4 1.5.2
remote:       Fetching autoprefixer-rails 10.2.5.1
remote:       Fetching uglifier 4.2.0
remote:       Installing uglifier 4.2.0
remote:       Fetching rack-test 2.1.0
remote:       Installing autoprefixer-rails 10.2.5.1
remote:       Installing rack-test 2.1.0
remote:       Fetching warden 1.2.9
remote:       Fetching rack-protection 3.1.0
remote:       Installing rack-protection 3.1.0
remote:       Installing warden 1.2.9
remote:       Fetching rack-mini-profiler 3.1.1
remote:       Fetching addressable 2.8.5
remote:       Fetching bourbon 7.3.0
remote:       Installing bourbon 7.3.0
remote:       Installing addressable 2.8.5
remote:       Installing rack-mini-profiler 3.1.1
remote:       Fetching babel-transpiler 0.7.0
remote:       Installing babel-transpiler 0.7.0
remote:       Fetching i18n 1.14.1
remote:       Fetching tzinfo 2.0.6
remote:       Fetching sprockets 4.1.1
remote:       Installing i18n 1.14.1
remote:       Fetching coffee-script 2.4.1
remote:       Fetching nokogiri 1.15.4
remote:       Installing tzinfo 2.0.6
remote:       Installing coffee-script 2.4.1
remote:       Installing sprockets 4.1.1
remote:       Fetching parser 3.2.2.4
remote:       Fetching redis-client 0.18.0
remote:       Installing redis-client 0.18.0
remote:       Fetching faraday 0.17.6
remote:       Installing parser 3.2.2.4
remote:       Fetching git_hub_bub 1.0.1
remote:       Installing faraday 0.17.6
remote:       Fetching kramdown 2.4.0
remote:       Installing git_hub_bub 1.0.1
remote:       Installing kramdown 2.4.0
remote:       Fetching mustermann 3.0.0
remote:       Fetching mime-types 3.3.1
remote:       Installing mime-types 3.3.1
remote:       Installing nokogiri 1.15.4 with native extensions
remote:       Installing mustermann 3.0.0
remote:       Fetching snaky_hash 2.0.1
remote:       Installing snaky_hash 2.0.1
remote:       Fetching prawn 2.4.0
remote:       Fetching slim 4.1.0
remote:       Installing slim 4.1.0
remote:       Fetching puma 6.4.0
remote:       Installing prawn 2.4.0
remote:       Fetching unf 0.1.4
remote:       Installing puma 6.4.0 with native extensions
remote:       Installing unf 0.1.4
remote:       Fetching yard 0.9.28
remote:       Fetching net-imap 0.3.1
remote:       Fetching net-pop 0.1.2
remote:       Installing net-pop 0.1.2
remote:       Fetching net-smtp 0.3.2
remote:       Installing net-imap 0.3.1
remote:       Fetching aws-sdk-core 3.162.0
remote:       Installing yard 0.9.28
remote:       Installing net-smtp 0.3.2
remote:       Fetching omniauth 2.1.1
remote:       Installing omniauth 2.1.1
remote:       Installing aws-sdk-core 3.162.0
remote:       Fetching css_parser 1.7.1
remote:       Installing css_parser 1.7.1
remote:       Fetching rack-canonical-host 1.2.0
remote:       Installing rack-canonical-host 1.2.0
remote:       Fetching activesupport 7.0.8
remote:       Fetching bootsnap 1.13.0
remote:       Fetching sidekiq 7.1.6
remote:       Installing activesupport 7.0.8
remote:       Installing bootsnap 1.13.0 with native extensions
remote:       Installing sidekiq 7.1.6
remote:       Fetching sentry-raven 2.13.0
remote:       Installing sentry-raven 2.13.0
remote:       Fetching sinatra 3.1.0
remote:       Fetching oauth2 2.0.9
remote:       Installing sinatra 3.1.0
remote:       Installing oauth2 2.0.9
remote:       Fetching scout_apm 5.3.1
remote:       Fetching simpleidn 0.2.1
remote:       Installing scout_apm 5.3.1 with native extensions
remote:       Installing simpleidn 0.2.1
remote:       Fetching kramdown-parser-gfm 1.1.0
remote:       Installing kramdown-parser-gfm 1.1.0
remote:       Fetching mail 2.8.1
remote:       Installing mail 2.8.1
remote:       Fetching premailer 1.11.1
remote:       Installing premailer 1.11.1
remote:       Fetching aws-sdk-kms 1.58.0
remote:       Fetching globalid 1.1.0
remote:       Installing aws-sdk-kms 1.58.0
remote:       Installing globalid 1.1.0
remote:       Fetching activemodel 7.0.8
remote:       Fetching skylight 6.0.1
remote:       Installing activemodel 7.0.8
remote:       Installing skylight 6.0.1 with native extensions
remote:       Fetching omniauth-oauth2 1.8.0
remote:       Installing omniauth-oauth2 1.8.0
remote:       Fetching aws-sdk-s3 1.115.0
remote:       Installing aws-sdk-s3 1.115.0
remote:       Fetching activejob 7.0.8
remote:       Installing activejob 7.0.8
remote:       Fetching activerecord 7.0.8
remote:       Installing activerecord 7.0.8
remote:       Fetching valid_email 0.1.4
remote:       Installing valid_email 0.1.4
remote:       Fetching omniauth-github 2.0.1
remote:       Installing omniauth-github 2.0.1
remote:       Fetching rb-inotify 0.10.1
remote:       Fetching rbtrace 0.4.14
remote:       Fetching get_process_mem 0.2.7
remote:       Fetching sassc 2.4.0
remote:       Installing rb-inotify 0.10.1
remote:       Installing get_process_mem 0.2.7
remote:       Installing sassc 2.4.0 with native extensions
remote:       Fetching puma_worker_killer 0.3.1
remote:       Fetching sass-listen 4.0.0
remote:       Installing puma_worker_killer 0.3.1
remote:       Installing rbtrace 0.4.14 with native extensions
remote:       Installing sass-listen 4.0.0
remote:       Fetching sass 3.7.4
remote:       Installing sass 3.7.4
remote:       Fetching neat 1.7.4
remote:       Installing neat 1.7.4
remote:       Fetching rails-dom-testing 2.2.0
remote:       Fetching loofah 2.21.4
remote:       Installing loofah 2.21.4
remote:       Installing rails-dom-testing 2.2.0
remote:       Fetching rails-html-sanitizer 1.6.0
remote:       Installing rails-html-sanitizer 1.6.0
remote:       Fetching actionview 7.0.8
remote:       Installing actionview 7.0.8
remote:       Fetching actionpack 7.0.8
remote:       Installing actionpack 7.0.8
remote:       Fetching activestorage 7.0.8
remote:       Fetching railties 7.0.8
remote:       Fetching omniauth-rails_csrf_protection 1.0.1
remote:       Fetching actioncable 7.0.8
remote:       Fetching actionmailer 7.0.8
remote:       Fetching sprockets-rails 3.4.2
remote:       Installing activestorage 7.0.8
remote:       Installing sprockets-rails 3.4.2
remote:       Installing omniauth-rails_csrf_protection 1.0.1
remote:       Installing actionmailer 7.0.8
remote:       Installing actioncable 7.0.8
remote:       Installing railties 7.0.8
remote:       Fetching premailer-rails 1.12.0
remote:       Fetching maildown 3.3.1
remote:       Installing premailer-rails 1.12.0
remote:       Installing maildown 3.3.1
remote:       Fetching actiontext 7.0.8
remote:       Fetching actionmailbox 7.0.8
remote:       Installing actionmailbox 7.0.8
remote:       Installing actiontext 7.0.8
remote:       Fetching responders 3.1.1
remote:       Fetching rails 7.0.8
remote:       Fetching sassc-rails 2.1.2
remote:       Fetching slim-rails 3.6.3
remote:       Fetching wicked 1.3.4
remote:       Fetching coffee-rails 5.0.0
remote:       Fetching jquery-rails 4.6.0
remote:       Fetching rails-autoscale-web 1.1.0
remote:       Installing rails-autoscale-web 1.1.0
remote:       Installing coffee-rails 5.0.0
remote:       Installing slim-rails 3.6.3
remote:       Installing responders 3.1.1
remote:       Installing rails 7.0.8
remote:       Installing sassc-rails 2.1.2
remote:       Installing wicked 1.3.4
remote:       Fetching devise 4.9.3
remote:       Installing devise 4.9.3
remote:       Installing jquery-rails 4.6.0
remote:       Bundle complete! 73 Gemfile dependencies, 154 gems now installed.
remote:       Gems in the groups 'development' and 'test' were not installed.
remote:       Bundled gems are installed into `/layers/heroku_ruby/gems`
remote:       Post-install message from devise:
remote:
remote:       [DEVISE] Please review the [changelog] and [upgrade guide] for more info on Hotwire / Turbo integration.
remote:
remote:         [changelog] https://github.com/heartcombo/devise/blob/main/CHANGELOG.md
remote:         [upgrade guide] https://github.com/heartcombo/devise/wiki/How-To:-Upgrade-to-Devise-4.9.0-%5BHotwire-Turbo-integration%5D
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 oauth2:
remote:
remote:       You have installed oauth2 version 2.0.9, congratulations!
remote:
remote:       There are BREAKING changes if you are upgrading from < v2, but most will not encounter them, and updating your code should be easy!
remote:
remote:       We have made two other major migrations:
remote:       1. master branch renamed to main
remote:       2. Github has been replaced with Gitlab
remote:
remote:       Please see:
remote:       • https://gitlab.com/oauth-xx/oauth2#what-is-new-for-v20
remote:       • https://gitlab.com/oauth-xx/oauth2/-/blob/main/CHANGELOG.md
remote:       • https://groups.google.com/g/oauth-ruby/c/QA_dtrXWXaE
remote:
remote:       Please report issues, and support the project! Thanks, |7eter l-|. l3oling
remote:
remote:
remote:   - Done (1m 55s)
remote: - Setting default processes
remote:   - Running `bundle list` ... (0.311s)
remote:   - Detected rails app (`rails` gem found)
remote: - Rake assets install
remote:   - Detected rake (`rake` gem found, `Rakefile` found at `/workspace/Rakefile`)
remote:   - Running `bundle exec rake -P --trace` ...... (3.954s)
remote:   - Compiling assets with cache (detected `rake assets:precompile` and `rake assets:clean` via `bundle exec rake -P`)
remote:   - Creating cache for /workspace/public/assets
remote:   - Creating cache for /workspace/tmp/cache/assets
remote:   - Running `bundle exec rake assets:precompile assets:clean --trace`
remote:
remote:       ** Invoke assets:precompile (first_time)
remote:       ** Invoke assets:environment (first_time)
remote:       ** Execute assets:environment
remote:       ** Invoke environment (first_time)
remote:       ** Execute environment
remote:       rake aborted!
remote:       Cannot load database configuration:
remote:       Could not load database configuration. No such file - ["config/database.yml"]
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/configuration.rb:352:in `database_configuration'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activerecord-7.0.8/lib/active_record/railtie.rb:266:in `block (2 levels) in <class:Railtie>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:95:in `class_eval'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:95:in `block in execute_hook'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:85:in `with_execution_control'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:90:in `execute_hook'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:76:in `block in run_load_hooks'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:75:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:75:in `run_load_hooks'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activerecord-7.0.8/lib/active_record/base.rb:333:in `<module:ActiveRecord>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activerecord-7.0.8/lib/active_record/base.rb:15:in `<main>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/skylight-6.0.1/lib/skylight/probes.rb:166:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require'
remote:       /workspace/app/models/user.rb:3:in `<main>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/skylight-6.0.1/lib/skylight/probes.rb:166:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:30:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/inflector/methods.rb:278:in `const_get'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/inflector/methods.rb:278:in `constantize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/core_ext/string/inflections.rb:74:in `constantize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise.rb:327:in `get'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/mapping.rb:83:in `to'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/mapping.rb:78:in `modules'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/mapping.rb:95:in `routes'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/mapping.rb:162:in `default_used_route'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/mapping.rb:72:in `initialize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise.rb:361:in `new'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise.rb:361:in `add_mapping'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/rails/routes.rb:243:in `block in devise_for'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/rails/routes.rb:242:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/rails/routes.rb:242:in `devise_for'
remote:       /workspace/config/routes.rb:21:in `block in <main>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/actionpack-7.0.8/lib/action_dispatch/routing/route_set.rb:428:in `instance_exec'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/actionpack-7.0.8/lib/action_dispatch/routing/route_set.rb:428:in `eval_block'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/actionpack-7.0.8/lib/action_dispatch/routing/route_set.rb:410:in `draw'
remote:       /workspace/config/routes.rb:5:in `<main>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:50:in `load'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:50:in `block in load_paths'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:50:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:50:in `load_paths'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:24:in `reload!'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:38:in `block in updater'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/file_update_checker.rb:83:in `execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:13:in `execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/finisher.rb:158:in `block in <module:Finisher>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:32:in `instance_exec'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:32:in `run'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:61:in `block in run_initializers'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:347:in `each'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:347:in `call'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:60:in `run_initializers'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application.rb:372:in `initialize!'
remote:       /workspace/config/environment.rb:7:in `<main>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/skylight-6.0.1/lib/skylight/probes.rb:166:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application.rb:348:in `require_environment!'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application.rb:506:in `block in run_tasks_blocks'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `block in execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `synchronize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:188:in `invoke'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/sprockets-rails-3.4.2/lib/sprockets/rails/task.rb:61:in `block (2 levels) in define'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `block in execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `synchronize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:243:in `block in invoke_prerequisites'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:241:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:241:in `invoke_prerequisites'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `synchronize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:188:in `invoke'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:182:in `invoke_task'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:138:in `block (2 levels) in top_level'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:138:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:138:in `block in top_level'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:147:in `run_with_threads'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:132:in `top_level'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:83:in `block in run'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:208:in `standard_exception_handling'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:80:in `run'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/exe/rake:27:in `<top (required)>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/bin/rake:25:in `load'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/bin/rake:25:in `<top (required)>'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `load'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `kernel_load'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli/exec.rb:23:in `run'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli.rb:486:in `exec'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'
remote:       /layers/heroku_ruby/ruby/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/libexec/bundle:48:in `block in <top (required)>'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/friendly_errors.rb:120:in `with_friendly_errors'
remote:       /layers/heroku_ruby/ruby/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/libexec/bundle:36:in `<top (required)>'
remote:       /layers/heroku_ruby/gems/bin/bundle:113:in `load'
remote:       /layers/heroku_ruby/gems/bin/bundle:113:in `<main>'
remote:
remote:       Caused by:
remote:       Could not load database configuration. No such file - ["config/database.yml"]
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/configuration.rb:352:in `database_configuration'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activerecord-7.0.8/lib/active_record/railtie.rb:266:in `block (2 levels) in <class:Railtie>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:95:in `class_eval'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:95:in `block in execute_hook'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:85:in `with_execution_control'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:90:in `execute_hook'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:76:in `block in run_load_hooks'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:75:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/lazy_load_hooks.rb:75:in `run_load_hooks'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activerecord-7.0.8/lib/active_record/base.rb:333:in `<module:ActiveRecord>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activerecord-7.0.8/lib/active_record/base.rb:15:in `<main>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/skylight-6.0.1/lib/skylight/probes.rb:166:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require'
remote:       /workspace/app/models/user.rb:3:in `<main>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/skylight-6.0.1/lib/skylight/probes.rb:166:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:30:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/inflector/methods.rb:278:in `const_get'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/inflector/methods.rb:278:in `constantize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/core_ext/string/inflections.rb:74:in `constantize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise.rb:327:in `get'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/mapping.rb:83:in `to'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/mapping.rb:78:in `modules'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/mapping.rb:95:in `routes'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/mapping.rb:162:in `default_used_route'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/mapping.rb:72:in `initialize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise.rb:361:in `new'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise.rb:361:in `add_mapping'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/rails/routes.rb:243:in `block in devise_for'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/rails/routes.rb:242:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/devise-4.9.3/lib/devise/rails/routes.rb:242:in `devise_for'
remote:       /workspace/config/routes.rb:21:in `block in <main>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/actionpack-7.0.8/lib/action_dispatch/routing/route_set.rb:428:in `instance_exec'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/actionpack-7.0.8/lib/action_dispatch/routing/route_set.rb:428:in `eval_block'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/actionpack-7.0.8/lib/action_dispatch/routing/route_set.rb:410:in `draw'
remote:       /workspace/config/routes.rb:5:in `<main>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:50:in `load'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:50:in `block in load_paths'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:50:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:50:in `load_paths'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:24:in `reload!'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:38:in `block in updater'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/file_update_checker.rb:83:in `execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/routes_reloader.rb:13:in `execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application/finisher.rb:158:in `block in <module:Finisher>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:32:in `instance_exec'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:32:in `run'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:61:in `block in run_initializers'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:347:in `each'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:347:in `call'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:60:in `run_initializers'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application.rb:372:in `initialize!'
remote:       /workspace/config/environment.rb:7:in `<main>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/skylight-6.0.1/lib/skylight/probes.rb:166:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application.rb:348:in `require_environment!'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/railties-7.0.8/lib/rails/application.rb:506:in `block in run_tasks_blocks'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `block in execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `synchronize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:188:in `invoke'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/sprockets-rails-3.4.2/lib/sprockets/rails/task.rb:61:in `block (2 levels) in define'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `block in execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:281:in `execute'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `synchronize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:243:in `block in invoke_prerequisites'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:241:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:241:in `invoke_prerequisites'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `synchronize'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:199:in `invoke_with_call_chain'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/task.rb:188:in `invoke'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:182:in `invoke_task'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:138:in `block (2 levels) in top_level'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:138:in `each'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:138:in `block in top_level'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:147:in `run_with_threads'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:132:in `top_level'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:83:in `block in run'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:208:in `standard_exception_handling'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/lib/rake/application.rb:80:in `run'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/gems/rake-13.1.0/exe/rake:27:in `<top (required)>'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/bin/rake:25:in `load'
remote:       /layers/heroku_ruby/gems/ruby/3.1.0/bin/rake:25:in `<top (required)>'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `load'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `kernel_load'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli/exec.rb:23:in `run'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli.rb:486:in `exec'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'
remote:       /layers/heroku_ruby/ruby/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/libexec/bundle:48:in `block in <top (required)>'
remote:       /layers/heroku_ruby/ruby/lib/ruby/3.1.0/bundler/friendly_errors.rb:120:in `with_friendly_errors'
remote:       /layers/heroku_ruby/ruby/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/libexec/bundle:36:in `<top (required)>'
remote:       /layers/heroku_ruby/gems/bin/bundle:113:in `load'
remote:       /layers/heroku_ruby/gems/bin/bundle:113:in `<main>'
remote:       Tasks: TOP => environment
remote:       I, [2024-09-06T18:50:30.622607 #11633]  INFO -- : [RailsAutoscale] Preparing request middleware
remote:       I, [2024-09-06T18:50:30.658196 #11633]  INFO -- : [SKYLIGHT] [6.0.1] Unable to start, see the Skylight logs for more details
remote:       I, [2024-09-06T18:50:30.708915 #11633]  INFO -- : Raven 2.13.0 configured not to capture errors: DSN not set
remote:       I, [2024-09-06T18:50:30.868344 #11633]  INFO -- : [RailsAutoscale] Reporter not started: RAILS_AUTOSCALE_URL is not set
remote:       D, [2024-09-06T18:50:31.061773 #11633] DEBUG -- : Cannot load database configuration:
remote:       Could not load database configuration. No such file - ["config/database.yml"] excluded from capture: DSN not set
remote:
remote:   - Done (2.105s)
remote: - Debug info
remote:   - Command failed `bundle exec rake assets:precompile assets:clean --trace`
remote:     exit status: 1
remote:     stdout: <see above>
remote:     stderr: <see above>
remote:
remote: ! Error compiling assets
remote: !
remote: ! An error occured while compiling assets via rake command.
remote: !
remote: ! Ensure you can run the following command locally with no errors before attempting another build:
remote: !
remote: ! `bundle exec rake assets:precompile assets:clean --trace`
remote: !
remote: !
remote: !
remote: ! Use the information above to debug further.
remote:
remote: ERROR: failed to build: exit status 1
remote: Verifying deploy...
remote:
@schneems
Copy link
Contributor Author

schneems commented Sep 6, 2024

Also "Could not load database configuration. No such file" is doubled here :/

@schneems schneems changed the title Deploying without a database and no config/database.yml says the error is the file is missing instead of no DB provisioned Warn when activerecord is detected but DATABASE_URL isn't set. Nov 6, 2024
@schneems schneems changed the title Warn when activerecord is detected but DATABASE_URL isn't set. Warn when activerecord is detected but DATABASE_URL isn't set before rake assets:precompile Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant