Buildbox Heroku
A ready to go setup for running your Buildbox Agent on Heroku.
What you need
- A Buildbox Account
- A new Buildbox Agent ready to setup, and it's access token
Setup
Create a git repository locally
$ git init
Clone the buildbox-heroku
repo into your local repo
$ git remote add origin https://github.com/buildboxhq/buildbox-heroku.git
$ git pull
Create an application on Heroku
$ heroku apps:create [name]
Setup you Buildbox Credentials on Heroku
$ heroku config:set BUILDBOX_AGENTS=[agent token]
Create a PostgreSQL Database (optional)
$ heroku addons:add heroku-postgresql:dev
$ heroku config | grep HEROKU_POSTGRESQL # Look for the color that Heroku chose for the database
$ heroku pg:promote HEROKU_POSTGRESQL_RED_URL
Deploy the code to Heroku
$ git push heroku master
Scale up the Buildbox Agent process
$ heroku ps:scale buildbox=1
That's it! If you heroku logs --tail
you should be able to see your Buildbox Agent connecting and looking for builds.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright
Copyright (c) 2013 Keith Pitt. See LICENSE for details.