setup_nginx.sh 420 B

123456789101112
  1. #!/bin/bash
  2. export PY2_ROOT=$IROOT/py2
  3. export PY2=$PY2_ROOT/bin/python
  4. export PY2_PIP=$PY2_ROOT/bin/pip
  5. export PY2_GUNICORN=$PY2_ROOT/bin/gunicorn
  6. export NGINX_HOME=${IROOT}/nginx
  7. sed -i 's|include .*/conf/uwsgi_params;|include '"${NGINX_HOME}"'/conf/uwsgi_params;|g' nginx.conf
  8. $NGINX_HOME/sbin/nginx -c ${TROOT}/nginx.conf
  9. $PY2_ROOT/bin/uwsgi --ini uwsgi.ini --processes ${MAX_THREADS} --gevent 1000 --wsgi hello &