Merge pull request #2289 from charltonaustin/add_in_documentation_for_migrations
Adding in a description on how to run migrations against remote machi…
This commit is contained in:
commit
5ce3e7cdcd
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