mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2025-11-04 14:50:01 +08:00
6 lines
226 B
Bash
Executable File
6 lines
226 B
Bash
Executable File
#!/usr/bin/env bash
|
|
chown compiler:compiler /spj
|
|
core=$(grep --count ^processor /proc/cpuinfo)
|
|
n=$(($core*2))
|
|
exec gunicorn --workers $n --threads $n --error-logfile /log/gunicorn.log --time 600 --bind 0.0.0.0:8080 server:app
|