Skip to content
Troy edited this page Oct 1, 2016 · 2 revisions

To begin

  • clone the repro
  • bundle install
  • rake db:create
  • rake db:migrate
  • rake db:seed

This will give you one user, admin. from here you can create admins, students, and or mentors.

Note

The remaining document will assume the application and branch that one is working on is demo and master example:

heroku <do_something> --remote demo

If you were working with qa the above would be

heroku <do_something> --remote qa

When first logged in, the application will ask you to change your password.

To reset a data base on Heroku

heroku pg:rest DATABASE --remote <remote_branch>

follow the directions (read everything)

heroku run rake db:migrate --remote <remote_branch>
heroku run rake db:seed --remote <remote_branch>

Example of reseting a data base for demo-gray-matter

heroku pg:rest DATABASE --remote demo
> _demo-gray-matter_ (following the direction)
heroku run rake db:migrate --remote demo
heroku run rake db:seed --remote demo

This should NOT preformed on production

To set env var on heroku

Configuration and Config Vars

To display a list of variables that are presently set:

heroku config --remote demo

to add a env to heroku:

heroku config:set HOST_URL=https://demo-gray-matter.herokuapp.com/ --remote demo