Simple Go script demonstrating use of the Heroku Platform API build resource
How to use:
$ git clone [email protected]:heroku/buildapi-go-example.git
...
$ go get
$ go build build.go
$ heroku create
Creating limitless-fjord-5604... done, stack is cedar
...
$ ./build -app limitless-fjord-5604 -archive https://github.com/heroku/node-js-sample/archive/master.tar.gz
.........
-----> Node.js app detected
-----> Requested node range: 0.10.x
-----> Resolved node version: 0.10.28
-----> Downloading and installing node
...
This will use the API key in your .netrc
file, created with the standard heroku login
command.
If you want to specify a key explicitly, use the -apikey
argument
$ ./build -apikey <api-key> -app limitless-fjord-5604 -archive https://github.com/heroku/node-js-sample/archive/master.tar.gz
You can get your API key by running heroku auth:token
or from the account page on Dashboard.