Slide 70
Slide 70 text
lanyrd.com/scxqhw
>>> heroku.get('https://api.heroku.com/apps/happy-pycon-2014/formation').json()
[{u'command': u'gunicorn hello:app',
u'created_at': u'2014-09-08T16:42:24Z',
u'id': u'928f6618-a0e2-4ded-95ec-e3a23a7795f0',
u'quantity': 2,
u'size': u'1X',
u'type': u'web',
u'updated_at': u'2014-09-08T18:50:02Z'}]
!
>>> body = json.dumps({'quantity': 4})
>>> heroku.patch('https://api.heroku.com/apps/jacobian/formation/web', body)
Scaling