python - Your recommendation to reset a postgress database in heroku after CircleCI tests -
i using circle ci tests , pushing python application heroku in order run web gui tests on machine.
what recommended way of filling heroku instance database content?
i not think circle ci should access heroku instance or database directly?
the heroku deploy hooks seem able call web hook. run command reset database.
if you're using built-in heroku deployments, won't able this, e.g. if configuration looks this:
deployment: staging: branch: master heroku: appname: foo-bar-123
you can instead configure deployment run several commands:
deployment: production: branch: production commands: - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow" - git push git@heroku.com:foo-bar-123.git $circle_sha1:refs/heads/master - heroku run rake db:migrate --app foo-bar-123: timeout: 400 # if deploys take long time
the comment two-bit alchemist command reset database.
the above examples taken from: https://circleci.com/docs/continuous-deployment-with-heroku#heroku-setup
Comments
Post a Comment