JudgeServer/server/run.sh
volltin@live.com 4861376841 fix include attack
avoid `#include "/test_case/1000/1.in"`
2017-03-17 16:15:16 +08:00

8 lines
304 B
Bash

#!/usr/bin/env bash
chown compiler:compiler /spj
echo 0 > /tmp/counter
core=$(grep --count ^processor /proc/cpuinfo)
n=$(($core*4))
chmod 400 /token.txt /tmp/counter
chmod -R 400 /test_case
gunicorn --workers $n --threads $n --error-logfile /log/gunicorn.log --time 600 --bind 0.0.0.0:8080 server:wsgiapp