Browse Source

Merge pull request #1271 from TechEmpower/fixLapis

Fixed Lapis
Mike Smith 10 years ago
parent
commit
518c3c49b9

+ 2 - 0
frameworks/Lua/lapis/.gitignore

@@ -0,0 +1,2 @@
+logs
+nginx.conf.compiled

+ 2 - 1
frameworks/Lua/lapis/config.lua

@@ -11,7 +11,8 @@ return config("production", function()
   return postgres({
   return postgres({
     backend = "pgmoon",
     backend = "pgmoon",
     database = "hello_world",
     database = "hello_world",
-    user = "postgres",
+    user = "benchmarkdbuser",
+    password = "benchmarkdbpass",
     host = "DBHOSTNAME"
     host = "DBHOSTNAME"
   })
   })
 end)
 end)

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

@@ -9,6 +9,7 @@ config "production", ->
   postgres {
   postgres {
     backend: "pgmoon"
     backend: "pgmoon"
     database: "hello_world"
     database: "hello_world"
-    user: "postgres"
+    user: "benchmarkdbuser"
+    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

+ 1 - 0
frameworks/Perl/mojolicious/.gitignore

@@ -0,0 +1 @@
+local