Comments (3)
@toolmantim - Could you provide some more details on how newrelic is misbehaving in this case? We had several reports of this type of issue a few months ago (newrelic triggering the application to connect to the db during the precompile step which causes an error on heroku). I was under the impression we'd resolved them in the last several versions of the agent. The problem definitely stems from an interaction with the app code. Most heroku apps don't suffer this problem, and none of my heroku apps (or test apps I created to debug this) ever experienced this error, which has made it difficult to pin down the root cause.
Any help or insight you can provide is appreciated. Also which version of the newrelic gem are you using when you experience this?
Thanks,
Sam
from heroku-buildpack-ruby.
@samg have a link to the relevant issue? Let's continue the discussion there.
But basically, this is with newrelic_rpm 3.3.4.1 and Rails 3.2.3. The only way I could get asset compilation not to throw an error on deploy was to do as the dev article says, and add the following to application.rb:
config.assets.initialize_on_precompile = false
from heroku-buildpack-ruby.
@toolmantim I have several apps that fail on the asset compilation step and correctly fallback to compiling on the fly. In my cases, they're super small apps that I "just want to work". You need to add that line either way
config.assets.initialize_on_precompile = false
If we took this functionality away a number of apps that rely on the behavior would start failing on their next deploy and not due to something they did. Seems bad to just remove this behavior after it has existed for so long. I'm closing this issue as being inactive, and since the bug actually looks like it is in the 3rd party libraries.
from heroku-buildpack-ruby.
Related Issues (20)
- JRuby 9.4.2.0 support? HOT 4
- Upgrade to Node 18 LTS HOT 1
- Using ruby 3.3.0 for preview release (as suggested in the notes) raises error with bundler HOT 2
- JRuby 9.4.4.0 support? HOT 1
- Support Bundler 2.4.20+ to enable `ruby file: '.ruby-version'` in Gemfile HOT 9
- Support Ruby 3.2.3 HOT 1
- Bundler 2.5.6 Causes Builds to Fail HOT 10
- Possible Bundler 2.5.6 Issues HOT 5
- ruby required for compiling webpack assets in rails build, missing from nodejs buildpack and stack 22 HOT 1
- Failed to install gems via Bundler (2.5.6) on Ruby 2.7.8 HOT 1
- Rails builds fail if `BUNDLE_WITHOUT="'development:test'"` (note the extra quotes)
- Support ARM64 when using Heroku-24 Docker images HOT 3
- Support Ruby 3.1.6 and 3.3.2 HOT 3
- Upstream bundler change removes credentials from Gemfile.lock, breaking Heroku build process HOT 1
- Support Ruby 3.3.3 HOT 1
- Remove unused logging code
- Windows gemfile breaks deployment HOT 2
- Error deploying Ruby app on heroku-24 HOT 6
- cp: non-portable warning
- Feature Request: Support for Jemalloc w/o Separate Build Pack
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-ruby.