moved db_preparation logic to fill-database phase

This commit is contained in:
2019-04-15 02:35:50 +02:00
parent 1494d4dfed
commit c2dea0bf70
8 changed files with 107 additions and 72 deletions

View File

@@ -47,14 +47,17 @@ If all goes well, we should be able to inspect the database, filled with corpora
### Flask backend (1 container)
Relies heavily on the database. Set that up first.
```bash
# spin up container
$ make python-env
# development:
# run the first time, to prepare the db, then kill
# it runs a few minutes, there should be a new collection in the db when finished
$ make backend-dev-init
# install our packages
$ make python-env-install
$ make backend-dev # debug with this one
# needs to be ran once to modify a new database
$ make backend-prepare-db
# with debugger
$ make backend-dev
# production
$ make backend-prod