README: move config section before migrate

This commit is contained in:
Luna 2019-02-26 23:26:08 -03:00
parent 6827259d30
commit 28635a3e91
1 changed files with 8 additions and 9 deletions

View File

@ -96,21 +96,20 @@ $ createdb litecord
$ psql -f schema.sql litecord $ psql -f schema.sql litecord
``` ```
Then, you should run database migrations: Copy the `config.example.py` file and edit it to configure your instance (
postgres credentials, etc):
```sh
$ pipenv run ./manage.py migrate
```
### Configuring
Copy the `config.example.py` file and edit it to configure your instance:
```sh ```sh
$ cp config.example.py config.py $ cp config.example.py config.py
$ $EDITOR config.py $ $EDITOR config.py
``` ```
Then, you should run database migrations:
```sh
$ pipenv run ./manage.py migrate
```
## Running ## Running
Hypercorn is used to run Litecord. By default, it will bind to `0.0.0.0:5000`. Hypercorn is used to run Litecord. By default, it will bind to `0.0.0.0:5000`.