From ab06473f884f59a6ba1ba8e3f3f6070183b83d01 Mon Sep 17 00:00:00 2001 From: bergi Date: Tue, 16 Nov 2021 10:59:22 +0100 Subject: [PATCH] add migration step to README.md docs (offenesdresden/ParkApi#229) --- .gitignore | 8 ++++---- README.md | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index d194c73..693bff1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ -.idea -venv -cities/__pycache__ +.idea/ +venv/ +env/ config.ini -__pycache__ +__pycache__/ cache *.pyc log/*.log diff --git a/README.md b/README.md index 1c62e28..907dfbc 100644 --- a/README.md +++ b/README.md @@ -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