#!/bin/bash -e

echo ---Running serf---

./migrate-db.sh

if [ "$NO_GUNICORN" = "true" ];
then
  python3 -u run.py
else
  gunicorn run:app --bind 0.0.0.0:8445 --worker-class aiohttp.worker.GunicornUVLoopWebWorker -w ${NUM_WORKERS:-2} --timeout 0
fi

#!/bin/bash -e

echo ---Running serf---

./migrate-db.sh

if [ "$NO_GUNICORN" = "true" ];
then
  python3 -u run.py
else
  gunicorn run:app --bind 0.0.0.0:8445 --worker-class aiohttp.worker.GunicornWebWorker -w ${NUM_WORKERS:-2} --timeout 0
fi

Move to standard aiohttp worker
Move to standard aiohttp worker
