Search overlay panel for performing site-wide searches

Salesforce (Heroku) Recognized as a Leader. Learn More!

api

Editor's note: This is a cross post from Blake Gentry, an engineer at Heroku.

This is a post about the recently announced Heroku Platform API JSON Schema and how I used that schema to write an auto-generated Go client for the API.

Heroku's API team has spent a large part of the past year designing a new version of the platform API . While this is the 3rd incarnation of the API, neither of the two previous versions were publicly documented. In fact, the only documentation on the old APIs that was ever published is…

The Heroku API gets a major update today; you can now view and manage all of your application’s settings straight from the command line. New in this version:

Manage sharing (add/remove/list collaborators)
Manage multiple ssh keys for your user (add/remove/list keys)
Update settings (public true/false, mode production/development)
Rename an app
Run rake tasks remotely

A taste of the new command-line goodness:

adam@kvasir:~$ heroku create gagetron
Created http://gagetron.heroku.com/ | git@heroku.com:gagetron.git

adam@kvasir:~$ heroku info gagetron
=== gagetron
Web URL: http://gagetron.heroku.com/
Git Repo: git@heroku.com:gagetron.git
Mode: development
Public: …

Heroku now has an API (accessible from the command line, a Ruby library, or REST calls), revision control on all apps with Git, and remote access to the Git repository.

The combination of these new features means that you can now work on your apps using the local tools you love – like TextMate, vi, or emacs – and still get the benefit of zero-configuration deployment to Heroku.

How does it work? Grab the Heroku gem with “gem install heroku”. A sample work session looks like this:

heroku clone myapp
cd myapp
ruby script/server
…edit locally…
git add .
git commit -m “local changes”
git push

The final step will…

Subscribe to the full-text RSS feed for Blake Gentry.