Skip to content

Instantly share code, notes, and snippets.

@jfernandez
Created May 13, 2010 20:40
Show Gist options
  • Save jfernandez/400430 to your computer and use it in GitHub Desktop.
Save jfernandez/400430 to your computer and use it in GitHub Desktop.
# Notify hoptoad of deploy
if @configuration[:environment] == "production"
run "cd #{release_path} && rake hoptoad:deploy TO=#{@configuration[:environment]} REVISION=#{@configuration[:revision]} REPO=#{@configuration[:repository]}"
run "cd #{release_path} && bin/newrelic_cmd deployments -e #{@configuration[:environment]} -r #{@configuration[:revision]}"
run "cd #{release_path} && script/runner 'GlobalMailer.deliver_production_deploy_email'"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment