Skip to content

Commit

Permalink
add migration step to README.md docs (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
defgsus authored and jklmnn committed Nov 19, 2021
1 parent bf66912 commit 83b2b85
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.idea
venv
cities/__pycache__
.idea/
venv/
env/
config.ini
__pycache__
__pycache__/
cache
*.pyc
log/*.log
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@ Also please note that this is not valid JSON. Just an example for how the output
$ sudo -u postgres createuser -P -d park_api
$ sudo -u postgres createdb -O park_api park_api

- Configure ParkAPI:

Copy the [config_example.ini](config_example.ini) to `config.ini` and
adjust the settings.

- Run the database migrations

$ yoyo apply --database postgresql://park_api:park_api@localhost/parkapi_testing schema/db/

(Run this for each database that is configured in the `config.ini`,
e.g. `parkapi_testing`, `parkapi_development`, aso..

- Run the server:

$ bin/parkapi-server
Expand Down

0 comments on commit 83b2b85

Please sign in to comment.