bundle install
cp config/database.yml.postgresqlapp config/database.yml
rake setup
npm install
bin/webpack-dev-server # only for development
bundle exec rails server
After starting the server see wiki to get some apis that you can hit.
- For branches auto deployed using
Heroku Review Apps
you need to env mentioned in app.json asrequired
on the parent app in thesettings
tab. Only exception isENV['HEROKU_APP_NAME']
, this is set by heroku.
- Set necessary environment variables.
- Set
ENV['HEROKU']
as true, used to determine that we are deploying to heroku and helps with config rails accordingly. - Add
heroku-postgresql
addon to the app. - Add following buildpacks. First is use to run
npm install
and second forbundle install
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nodejs.git
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
- Install Heroku Repo Plugin from here
- Run
heroku repo:purge_cache -a apisanity
- Merge to master.
This would help in deploying to master when PR is merged without any hassle.
The production version is hosted at DigitalOcean. When a PR is merged then commit is also pushed to production branch using gitemit. Shipit is enabled for deployment to production.