Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

fixes #33 #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixes #33 #35

wants to merge 1 commit into from

Conversation

monfresh
Copy link
Member

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.

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
@lovehandle
Copy link
Member

This is ingenious. Never occurred to me to use New Relic to maintain active dynos. 👍

@StephenOTT
Copy link

The pings are enough to keep the dynos alive? Heroku does not know the difference?

@monfresh
Copy link
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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants