Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 806 Bytes

deploy.md

File metadata and controls

55 lines (33 loc) · 806 Bytes

Deployment

Dependencies

  • Python3
$ sudo apt install python3 python3-pip
  • Django >= 2
$ sudo pip3 install Django
  • zip
$ sudo apt install zip

Configuration

Django migration

$ python3 manage.py migrate

(Please Ctrl-C the migration process when it stucks, since the judge thread started with the server would cause an infinity loop in background)

Configure ducks

$ echo '<ip> <port>' >> ducks-config.txt  # For each duck

Or use ducks-config.txt generated by JudgeDuck OS.

Configure problems

Create folder jp_data/problems/, and put all the problem folders into it.

The problem_md5 of a problem would be its folder name.

Running

$ python3 manage.py runserver <ip>:<port>

GL & HF !