Commit 4b704832 authored by nanahira's avatar nanahira

allow manual tokens and threads

parent a23b3076
Pipeline #20312 passed with stages
in 16 seconds
......@@ -8,4 +8,12 @@ if [ -z "$PORT" ]; then
PORT=80
fi
gunicorn app:app -w 1 --threads $[$(nproc) * 2 + 1] -b $HOST:$PORT
if [-z "$WORKERS" ]; then
WORKERS=1
fi
if [-z "$THREADS" ]; then
THREADS=$[$(nproc) * 2 + 1]
fi
gunicorn app:app -w "$WORKERS" --threads "$THREADS" -b $HOST:$PORT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment