Skip to content

Commit

Permalink
scale dynos up
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Stiens authored and estiens committed May 17, 2019
1 parent 2c0dfa5 commit 0ed03ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/new_scraper_clock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ def scale_up
if ENV['PLATFORM_OAUTH_TOKEN']
heroku = PlatformAPI.connect_oauth(ENV['PLATFORM_OAUTH_TOKEN'])
heroku.formation.update('world-cup-json', 'clock', size: 'standard-2x')
heroku.formation.update('world-cup-json', 'web', quantity: 3)
heroku.formation.update('world-cup-json', 'web', quantity: 4)
end
end

def scale_middle
if ENV['PLATFORM_OAUTH_TOKEN']
heroku = PlatformAPI.connect_oauth(ENV['PLATFORM_OAUTH_TOKEN'])
heroku.formation.update('world-cup-json', 'clock', size: 'standard-2x')
heroku.formation.update('world-cup-json', 'web', quantity: 2)
heroku.formation.update('world-cup-json', 'web', quantity: 3)
end
end

def scale_down
if ENV['PLATFORM_OAUTH_TOKEN']
heroku = PlatformAPI.connect_oauth(ENV['PLATFORM_OAUTH_TOKEN'])
heroku.formation.update('world-cup-json', 'clock', size: 'standard-1x')
heroku.formation.update('world-cup-json', 'web', quantity: 1)
heroku.formation.update('world-cup-json', 'web', quantity: 2)
end
end

Expand Down

0 comments on commit 0ed03ad

Please sign in to comment.