Fork me on GitHub
Production Hacks

Engine Yard Cloud, New Relic and Hoptoad deploy notifications

May 12th 2010

Engine Yard’s Cloud platform uses the chef-deploy gem instead of the more commonly used Capistrano to deploy your Rails app. Both New Relic and Hoptoad have a built in Capistrano task to notify the services on deploy. Using a deploy hook we can achieve the same result with EY-Cloud.

Create the following file in “RAILS_ROOT/deploy/after_restart.rb”

The above deploy hook will only fire off when you’re deploying to a production environment. If you’re using bundler08 instead of Engine Yard’s gem manager, then replace the “newrelic_cmd” with “bin/newrelic_cmd”.

blog comments powered by Disqus