Adding in a description on how to run migrations against remote machines.

This commit is contained in:
Charlton Austin 2017-01-18 16:16:45 -05:00
parent 1bbb69367a
commit 8f97e065b0

View file

@ -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.