Minor improvements to developer docs
This commit is contained in:
parent
e06f77389a
commit
cbb616bfaa
1 changed files with 12 additions and 3 deletions
15
DEVELOPER.md
15
DEVELOPER.md
|
|
@ -64,7 +64,7 @@ python manage.py createsuperuser
|
|||
3. Launch the backend:
|
||||
```bash
|
||||
# Http server:
|
||||
python manage.py runserver 8080
|
||||
python manage.py runserver 0.0.0.0:8080
|
||||
|
||||
# Worker for background tasks (run it in the parallel terminal, don't forget to export .env there)
|
||||
python manage.py start_celery
|
||||
|
|
@ -203,11 +203,20 @@ Credentials: admin/admin
|
|||
|
||||
### Running tests locally
|
||||
|
||||
In the `engine` directory, with the `.env` vars exported and virtualenv activated
|
||||
|
||||
```bash
|
||||
pytest
|
||||
```
|
||||
# in the engine directory, with the virtualenv activated
|
||||
pytest --ds=settings.dev
|
||||
|
||||
You can also install `pytest.xdist` in your env and run tests in parallel:
|
||||
|
||||
```bash
|
||||
pip install pytest.xdist
|
||||
pytest -n4
|
||||
```
|
||||
|
||||
|
||||
## IDE Specific Instructions
|
||||
|
||||
### PyCharm
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue