Skip to content

Instantly share code, notes, and snippets.

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