Adding in a description on how to run migrations against remote machines.
This commit is contained in:
parent
1bbb69367a
commit
8f97e065b0
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
@ -288,6 +288,22 @@ python initdb.py
|
|||
```
|
||||
|
||||
|
||||
### Running tests for migrations
|
||||
|
||||
Use AWS/RDS to create a test image.
|
||||
To create a new database from a snapshot to test against see
|
||||
[this](http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_RestoreFromSnapshot.html).
|
||||
|
||||
Then point the migrations to the new instance using
|
||||
quay-config/local/config.yaml
|
||||
|
||||
Remember to run this from the root of the quay directory and to set your
|
||||
python environment first.
|
||||
|
||||
```
|
||||
PYTHONPATH=. alembic upgrade head
|
||||
```
|
||||
|
||||
### How to run a build with tests for a push or merge
|
||||
```
|
||||
# Inside the quay directory.
|
||||
|
|
Reference in a new issue