setup.sh 249 B

1234567
  1. #!/bin/bash
  2. export OPENRESTY_HOME=${IROOT}/openresty-1.7.7.1
  3. sed -i 's|CWD|'"${TROOT}"'|g' nginx.conf
  4. sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' app.lua
  5. ${OPENRESTY_HOME}/nginx/sbin/nginx -c $TROOT/nginx.conf -g "worker_processes '"${MAX_THREADS}"';" &