This repository was archived by the owner on Jul 11, 2023. It is now read-only.
forked from sfbrigade/adopt-a-drain
-
Notifications
You must be signed in to change notification settings - Fork 12
Heroku Deploys
Bret Fisher edited this page Mar 7, 2019
·
1 revision
# wipe the database
heroku pg:reset <postgresql-instance-name> --app norfolkdrains-develop --confirm norfolkdrains-develop
# load the db schema (first time only). No data is included
heroku run bundle exec rake db:schema:load --app norfolkdrains-develop
# load the norfolk.csv in the root of the repo
heroku run bundle exec rake data:load_things --app norfolkdrains-develop
- replace/edit the norfolk.csv with new data (OBJECTID is key and must match to prevent dupes)
- commit to develop/master branches, herkou will deploy new docker image within minutes
- assuming your logged into heroku cli:
-
heroku run bundle exec rake data:load_things --app norfolkdrains-develop
for develop, and remove-develop
for prod project name. The app correctly merges any csv data.
https://norfolkdrains.code4hr.org/admin
- first admin must signup, then manually edit db to mark their user admin