A Sinatra app and workers that allows deployment of a Bothan instance to Heroku.
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
ruby version 2.3.1
The application uses postgres for data persistence
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=''
This application is designed to run live on Heroku hence the .env
variables stipulated above.
Execute RACK_ENV=test bundle exec rake db:create && bundle exec rake db:migrate
to build the databases required for development and testing
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.
execute bundle exec rake