These are are some notes I put together on butchering the rectangular dishy cable.
FOLLOW THESE GUIDELINES AT YOUR OWN RISK. I TAKE NO RESPONSIBILITY FOR ANY DAMAGE OR INJURY YOU SUSTAIN FROM FOLLOWING OR NOT FOLLOWING THESE GUIDELINES.
namespace :app do | |
desc 'restart web dynos over a rolling 30 seconds window' | |
task restart: :environment do | |
require 'platform-api' | |
heroku = PlatformAPI.connect_oauth(ENV['PLATFORM_API_TOKEN']) | |
dynos = heroku.dyno.list(ENV['APP_NAME']).select{|d| d['name'].match(/^web/) } | |
dynos.each { |d| heroku.dyno.restart(ENV['APP_NAME'], d['name']); sleep 30 } | |
end | |
end |