-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Troy edited this page Oct 1, 2016
·
2 revisions
- 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.
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.
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
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