Ruroku, the better Ruby client for Heroku API
Working with Heroku API from Ruby code is fun again!
heroku = Ruroku::API.new api_key: API_KEY
Now get a specific app:
app = heroku['app-name']
Add an addon:
app.addons.add 'mongolab:starter'
Update an env var:
app.config_vars['STRIPE_API_KEY'] = '11010010100010010'
Add a domain:
app.domains.add '*.app-name.com'
Scale web & worker processes
app.processes.scale 'web', 5
app.processes.scale 'worker', 10
Now rollback to the first version:
app.releases['v1'].rollback
Of course, you can read logs, too:
app.logs
Like it?
Written by Gosha Arinich
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#