setup_nginx.sh 252 B

123456
  1. #!/bin/bash
  2. sed -i 's|include .*/conf/uwsgi_params;|include '"${NGINX_HOME}"'/conf/uwsgi_params;|g' nginx.conf
  3. $NGINX_HOME/sbin/nginx -c ${TROOT}/nginx.conf
  4. $PY2_ROOT/bin/uwsgi -d --ini uwsgi.ini --processes ${MAX_THREADS} --gevent 1000 --wsgi hello