spug/spug_api/tools/start-api.sh
2020-01-08 00:25:18 +08:00

5 lines
155 B
Bash

#!/bin/bash
# start api service
cd $(dirname $(dirname $0))
source ./venv/bin/activate
exec gunicorn -b :9001 -w 2 --threads 8 --access-logfile - spug.wsgi