Git Product home page Git Product logo

Comments (3)

samg avatar samg commented on August 28, 2024

@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.

toolmantim avatar toolmantim commented on August 28, 2024

@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.

schneems avatar schneems commented on August 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.