You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
Bret Fisher edited this page Mar 7, 2019
·
1 revision
How to reset (wipe) staging (develop) and start over with new schema
# 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.