Browse Source

Lapis config changes

tfb 12 years ago
parent
commit
57df7c6694
3 changed files with 3 additions and 3 deletions
  1. 1 1
      lapis/config.lua
  2. 1 1
      lapis/config.moon
  3. 1 1
      toolset/setup/linux/installer.py

+ 1 - 1
lapis/config.lua

@@ -9,6 +9,6 @@ end)
 return config("production", function()
   port(80)
   num_workers(4)
-  lua_code_cache("off")
+  lua_code_cache("on")
   return postgresql_url("postgres://benchmarkdbuser:[email protected]/hello_world")
 end)

+ 1 - 1
lapis/config.moon

@@ -6,5 +6,5 @@ config "development", ->
 config "production", ->
   port 80
   num_workers 4
-  lua_code_cache "off"
+  lua_code_cache "on"
   postgresql_url "postgres://benchmarkdbuser:[email protected]/hello_world"

+ 1 - 1
toolset/setup/linux/installer.py

@@ -222,7 +222,7 @@ class Installer:
     #
     self.__download("http://openresty.org/download/ngx_openresty-1.2.7.5.tar.gz")
     self.__run_command("tar xzf ngx_openresty-1.2.7.5.tar.gz")
-    self.__run_command("./configure --with-luajit", cwd="ngx_openresty-1.2.7.5")
+    self.__run_command("./configure --with-luajit --with-http_postgres_module", cwd="ngx_openresty-1.2.7.5")
     self.__run_command("make", cwd="ngx_openresty-1.2.7.5")
     self.__run_command("sudo make install", cwd="ngx_openresty-1.2.7.5")