config.lua 403 B

1234567891011121314
  1. local config
  2. do
  3. local _obj_0 = require("lapis.config")
  4. config = _obj_0.config
  5. end
  6. config("development", function()
  7. return postgresql_url("postgres://benchmarkdbuser:[email protected]/hello_world")
  8. end)
  9. return config("production", function()
  10. port(80)
  11. num_workers(4)
  12. lua_code_cache("on")
  13. return postgresql_url("postgres://benchmarkdbuser:[email protected]/hello_world")
  14. end)