This repository was archived by the owner on Aug 2, 2019. It is now read-only.
Open
Conversation
added newrelic_rpm gem and upgraded debugger-ruby_core_source to allow debugger-linecache to install on 1.9.3. also updated Readme to set New Relic environment variables
Member
|
This is ingenious. Never occurred to me to use New Relic to maintain active dynos. 👍 |
|
The pings are enough to keep the dynos alive? Heroku does not know the difference? |
Member
Author
|
It's been working for the apps I've deployed, such as http://hydrants.codefordc.org. Try it out and see how it works for you. It doesn't hurt to add New Relic monitoring. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initial load times can be very slow on Heroku-hosted sites because Heroku spins down the dynos on sites that are not accessed very often. One solution is to use the free New Relic monitoring service, which pings your site throughout the day and prevents the dynos from going to sleep.
Simply adding the New Relic add-on is not enough. You also have to add the "newrelic_rpm" gem to your Gemfile, then
bundle install, and add a "newrelic.yml" file in your config directory. This is what this pull request does.You then need to set Heroku environment variables for your New Relic License Key and App Name. This is covered in the new section I added to the Readme via this pull request.
I also upgraded debugger-ruby_core_source to allow debugger-linecache to install on 1.9.3.