Skip to content

Commit

Permalink
📝 Update development init instructions
Browse files Browse the repository at this point in the history
Postgres added a password requirement in a bug fix update. See docker-library/postgres#681
Also running migrate before upgrade fails for me.
  • Loading branch information
fiendish authored Jan 19, 2021
1 parent f1138d3 commit 2e1f4e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ 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
flask db migrate
# Run the flask web application
flask run
```
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 2e1f4e8

Please sign in to comment.