Browse Source

Fixed a few more DB issues

msmith-techempower 10 years ago
parent
commit
63aafe308b
2 changed files with 2 additions and 1 deletions
  1. 1 1
      frameworks/Lua/lapis/config.moon
  2. 1 0
      frameworks/Lua/lapis/setup.sh

+ 1 - 1
frameworks/Lua/lapis/config.moon

@@ -9,7 +9,7 @@ config "production", ->
   postgres {
   postgres {
     backend: "pgmoon"
     backend: "pgmoon"
     database: "hello_world"
     database: "hello_world"
-    user: "benchmarkdbuser",
+    user: "benchmarkdbuser"
     password: "benchmarkdbpass"
     password: "benchmarkdbpass"
     host: "DBHOSTNAME"
     host: "DBHOSTNAME"
   }
   }

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

@@ -1,6 +1,7 @@
 #!/bin/bash
 #!/bin/bash
 
 
 sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' config.lua
 sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' config.lua
+sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' config.moon
 sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' nginx.conf
 sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' nginx.conf
 
 
 export PATH=${OPENRESTY_HOME}/nginx/sbin:$PATH
 export PATH=${OPENRESTY_HOME}/nginx/sbin:$PATH