mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2024-12-29 14:11:44 +00:00
14 lines
349 B
Bash
Executable File
14 lines
349 B
Bash
Executable File
#!/bin/bash
|
|
rm -rf /judger/*
|
|
mkdir -p /judger/run /judger/spj
|
|
|
|
chown compiler:code /judger/run
|
|
chmod 711 /judger/run
|
|
|
|
chown compiler:spj /judger/spj
|
|
chmod 710 /judger/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
|