瀏覽代碼

Fixed lapis

msmith-techempower 10 年之前
父節點
當前提交
4951e41d0e
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 3 0
      frameworks/Lua/lapis/bash_profile.sh
  2. 2 0
      frameworks/Lua/lapis/setup.sh

+ 3 - 0
frameworks/Lua/lapis/bash_profile.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+
+export OPENRESTY_HOME=${IROOT}/openresty-1.7.4.1

+ 2 - 0
frameworks/Lua/lapis/setup.sh

@@ -3,4 +3,6 @@
 sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' config.lua
 sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' config.lua
 sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' nginx.conf
 sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' nginx.conf
 
 
+export PATH=${OPENRESTY_HOME}/nginx/sbin:$PATH
+
 lapis server production &
 lapis server production &