forked from kristjan/cjvt-valency
moved db_preparation logic to fill-database phase
This commit is contained in:
13
README.md
13
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user