README: add migrate instructions

This commit is contained in:
Luna Mendes 2018-11-06 20:49:43 -03:00
parent db9fd783f5
commit 86923cc6e3
1 changed files with 11 additions and 0 deletions

View File

@ -36,6 +36,10 @@ $ psql -f schema.sql litecord
# edit config.py as you wish # edit config.py as you wish
$ cp config.example.py config.py $ cp config.example.py config.py
# run database migrations (this is a
# required step in setup)
$ pipenv run ./manage.py migrate
# Install all packages: # Install all packages:
$ pipenv install --dev $ pipenv install --dev
``` ```
@ -50,3 +54,10 @@ Use `--access-log -` to output access logs to stdout.
```sh ```sh
$ pipenv run hypercorn run:app $ pipenv run hypercorn run:app
``` ```
## Updating
```sh
$ git pull
$ pipenv run ./manage.py migrate
```