Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 2.78 KB

installation.md

File metadata and controls

61 lines (49 loc) · 2.78 KB

Installation

Heaven is a rails app that was designed to be hosted on heroku.

Hosting on heroku

Process Management

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

Configuration

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.

Optional Configuration

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