-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Describe the bug
#20 [builder 8/8] RUN --mount=type=ssh RAILS_ENV=production ASSETS_PRECOMPILE=1 SECRET_KEY_BASE=$(bin/rake secret) bundle exec rake assets:precompile && yarn cache clean && rm -rf /app/tmp/* && rm -rf /app/node_modules/.cache
#20 sha256:5bc57b6c3a9a14585665787b6177d5d89ac041dad6acca63856cf49ac8e89042
#20 5.331 [Warning] After upgrading RailsAdmin to 3.x you haven't set asset_source yet, using :sprockets as the default.
#20 5.331 To suppress this message, run 'rails rails_admin:install' to setup the asset delivery method suitable to you.
#20 5.964 Running via Spring preloader in process 26
#20 7.970 ** [NewRelic] FATAL : Failed ERB processing configuration file. This is typically caused by a Ruby error in <% %> templating blocks in your newrelic.yml file.
#20 7.970 ** [NewRelic] FATAL : key not found: "NEWRELIC_KEY"
#20 8.210 [RailsAdmin] Could not load model Deployment, assuming model is non existing. (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))
#20 8.210 [RailsAdmin] Could not load model Application, assuming model is non existing. (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))
Reproduction steps
- Run the assets precompile in a Docker
Expected behavior
- Rails admin to respect Rails behavior and connect to the DB during assets precompile
Additional context
railsversion: 7.0.3rails_adminversion: 3.0.0rails_adminnpm package version: /- full stack trace (if there's an exception)
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels