Skip to content

Commit

Permalink
Merge pull request #566 from kids-first/flask-instructions
Browse files Browse the repository at this point in the history
📝 Update development init instructions
  • Loading branch information
fiendish authored Jan 19, 2021
2 parents f1138d3 + ac583eb commit 99d4dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pip install -e .
# Configure the flask application
export FLASK_APP=manage
# Setup the database (using a dockerized postgres)
docker run --name dataservice-pg -p 5432:5432 -d postgres:9.5
docker run -e POSTGRES_HOST_AUTH_METHOD=trust --name dataservice-pg -p 5432:5432 -d postgres:9.5
docker exec dataservice-pg psql -U postgres -c "CREATE DATABASE dev;"
flask db migrate
flask db upgrade
Expand Down Expand Up @@ -158,7 +158,7 @@ Unit tests and pep8 linting is run via `flask test`
# Install test dependencies
pip install -r dev-requirements.txt
# Setup test database
docker run --name dataservice-pg -p 5432:5432 -d postgres
docker run -e POSTGRES_HOST_AUTH_METHOD=trust --name dataservice-pg -p 5432:5432 -d postgres
docker exec dataservice-pg psql -U postgres -c "CREATE DATABASE test;"
# Run tests
flask test
Expand Down

0 comments on commit 99d4dcf

Please sign in to comment.