Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Elena Henderson committed Apr 8, 2021
1 parent 547c169 commit 4bf1a86
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,20 @@ repository, and the results are hosted on the
(conbench) $ createdb conbench_prod
(conbench) $ alembic upgrade head

Note that `flask run` and `pytest -vv conbench/tests/` will not run migrates

### Test migrates with the database running as a docker container
(conbench) $ cd ~/workspace/conbench/
(conbench) $ brew services stop postgres
(conbench) $ docker-compose down
(conbench) $ docker-compose build
(conbench) $ docker-compose run migration

### To autogenerate migrate
(conbench) $ cd ~/workspace/conbench/
(conbench) $ brew services start postgres
(conbench) $ dropdb conbench_prod
(conbench) $ createdb conbench_prod
(conbench) $ git checkout main && git pull
(conbench) $ alembic upgrade head
(conbench) $ git checkout your-branch
(conbench) $ alembic revision --autogenerate -m "new"

0 comments on commit 4bf1a86

Please sign in to comment.