Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Reset UAT DB #197

Open
colinbruce opened this issue Feb 9, 2021 · 0 comments
Open

Reset UAT DB #197

colinbruce opened this issue Feb 9, 2021 · 0 comments

Comments

@colinbruce
Copy link
Contributor

colinbruce commented Feb 9, 2021

Sometimes databases get into inconsistent states
This requires logging in and running

rake db:migrate
rake db:seed

before the instance can be used.
Using @colinbruce's bash scripts it's possible to ID the web pod and run

kubectl -n uat-namespace exec pod-name -- rake db:migrate; rake db:seed

this could be done from a slack bot command and allow non-tech staff to reset the DB on demand without waiting for a dev to be available

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant