Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 1.477 kb
run "echo '~~~ Custom After Restart Hooks - Begin...'"
run "echo 'Working on #{node[:environment][:framework_env]} environment.'"
notify_deploy_environments = %w(staging production)
notify_deploy_roles = %w(solo app_master)
if notify_deploy_environments.include?(@configuration[:environment]) && notify_deploy_roles.include?(node['instance_role'])
# Notify Airbrake of deploy
run "echo 'Setting up AirBrake to send deployment information...'"
run "echo ' TO: #{@configuration[:environment].strip}'"
run "echo ' REVISION: #{@configuration[:revision].strip}'"
run "echo ' REPO: #{@configuration[:repo].strip}'"
run "echo ' USER: `whoami`'"
run "echo ' cd #{release_path} && bundle exec rake airbrake:deploy TO=#{@configuration[:environment].strip} REVISION=#{@configuration[:revision].strip} USER=`whoami` REPO=#{@configuration[:repo].strip}'"
run "cd #{release_path} && bundle exec rake airbrake:deploy TO=#{@configuration[:environment].strip} REVISION=#{@configuration[:revision].strip} USER=`whoami` REPO=#{@configuration[:repo].strip}"
run "echo 'Finished setting up AirBrake to send deployment information'"
end
# restart delayed_job process
run "echo 'Restarting delayed_job process...'"
run "echo ' cd #{release_path} && bundle exec script/delayed_job restart'"
run "cd #{release_path} && bundle exec script/delayed_job restart"
run "echo 'Finished restarting delayed_job process.'"
run "echo '~~~ Custom After Restart Hooks - Complete'"
Jump to Line
Something went wrong with that request. Please try again.