setup.sh 245 B

12345678910
  1. #!/bin/bash
  2. sed -i 's|CWD|'"${TROOT}"'|g' nginx.conf
  3. sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' app.lua
  4. fw_depends lua luarocks openresty
  5. luarocks install lua-resty-template
  6. nginx -c $TROOT/nginx.conf -g "worker_processes '"${MAX_THREADS}"';" &