Skip to content

theodi/bothan-deploy

Repository files navigation

Build Status Dependency Status Coverage Status Code Climate License

Bothan Deploy

A Sinatra app and workers that allows deployment of a Bothan instance to Heroku.

Summary of features

Generate a form that elicits all the user information required to establish a Heroku hosted instance of Bothan. Tasks/workers (??) that automate the process of deploying to Heroku

Development

Requirements

ruby version 2.3.1

The application uses postgres for data persistence

Environment variables

The following environment variables are required to test this application

HEROKU_OAUTH_ID=''
HEROKU_OAUTH_SECRET=''
HEROKU_BOUNCER_SECRET=''
BOTHAN_DEPLOY_SESSION_SECRET=''
PUSHER_APP_ID=
PUSHER_KEY=''
PUSHER_SECRET=''
GITHUB_WEBHOOK_SECRET=''

Specific Development Instructions

This application is designed to run live on Heroku hence the .env variables stipulated above.

Database Configuration

Execute RACK_ENV=test bundle exec rake db:create && bundle exec rake db:migrate to build the databases required for development and testing

Development: Running the full application locally

execute bundle exec rackup config.ru to host the form on a tcp:// port
Running the application locally can sometimes result in your local instance redirecting to the live bothan deploy (at deploy.bothan.io) as a consequence of Heroku Bouncer - if you encounter this error try disabling the HEROKU_OAUTH_SECRET env variable.

Tests

execute bundle exec rake

Releases

No releases published

Packages

No packages published

Languages