start-api.sh 357 B

1234567891011
  1. #!/bin/bash
  2. # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
  3. # Copyright: (c) <spug.dev@gmail.com>
  4. # Released under the AGPL-3.0 License.
  5. # start api service
  6. cd $(dirname $(dirname $0))
  7. if [ -f ./venv/bin/activate ]; then
  8. source ./venv/bin/activate
  9. fi
  10. exec gunicorn -b 127.0.0.1:9001 -w 2 --threads 8 --access-logfile - spug.wsgi