12 lines
352 B
Bash
12 lines
352 B
Bash
#!/bin/bash
|
|
# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
|
|
# Copyright: (c) <spug.dev@gmail.com>
|
|
# Released under the MIT License.
|
|
# start api service
|
|
|
|
cd $(dirname $(dirname $0))
|
|
if [ -f ./venv/bin/activate ]; then
|
|
source ./venv/bin/activate
|
|
fi
|
|
exec gunicorn -b 127.0.0.1:9001 -w 2 --threads 8 --access-logfile - spug.wsgi
|