Update README.md

This commit is contained in:
Phuoc Dinh Le 2021-01-02 02:34:51 -06:00 committed by GitHub
parent 5116e14257
commit c292c1433d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,6 +61,18 @@ dmoj 0.0.0.0 -p 9999 -c <path to yml configure file>
``` ```
Here we suppose you use the default port 9999 for bridge in `settings.py`. You can create multiple judges, each should be in a seperate terminal. Here we suppose you use the default port 9999 for bridge in `settings.py`. You can create multiple judges, each should be in a seperate terminal.
**Optional**
5. Run celery worker (This is server's queue. It may be necessary in some functions)
```bash
celery -A dmoj_celery worker
```
6. Run a live event server (So everything is updated lively like in the production)
```bash
node websocket/daemon.js
```
## Deploy ## Deploy
Most of the steps are similar to Django tutorials. Here are two usual steps: Most of the steps are similar to Django tutorials. Here are two usual steps: