Heaven is a rails app that was designed to be hosted on heroku.
You need redis for resque and as many workers as you think you'll need. I'd keep it at one until you start to notice queuing.
$ heroku addons:add openredis:micro
$ heroku ps:scale worker=1
Set the follow environmental variables are present heroku config:add
like this.
$ heroku config:add GITHUB_TOKEN=<key>
Setting config vars and restarting heaven... done, v7
GITHUB_TOKEN: <key>
Environmental Variables | |
---|---|
DATABASE_URL | A uri for to connect to a postgresql database. |
GITHUB_TOKEN | A personal access token from your account settings, for API interaction. |
GITHUB_CLIENT_ID | The client id of the OAuth application. |
GITHUB_CLIENT_SECRET | The client secret of the OAuth application. |
GITHUB_TEAM_ID | A GitHub team id to restrict resque access to. |
BUILDPACK_URL | Heroku support for multiple runtimes. Link |
RAILS_SECRET_KEY_BASE | The secret key for signing session cookies. This should be unique per domain. |
Environmental Variables | |
---|---|
DEPLOYMENT_PRIVATE_KEY | An ssh private key used to login to your remote servers via SSH. Put it all on one line with \n in it. |
DEPLOYMENT_TIMEOUT | A timeout in seconds that the deployment should take. Deployments are aborted if they exceed this value. Defaults to 300 seconds |
HEROKU_API_KEY | A direct authorization token from heroku |