config.lua 345 B

1234567891011121314151617
  1. local config
  2. do
  3. local _obj_0 = require("lapis.config")
  4. config = _obj_0.config
  5. end
  6. config("development", function() end)
  7. return config("production", function()
  8. port(80)
  9. num_workers(4)
  10. lua_code_cache("on")
  11. return postgres({
  12. backend = "pgmoon",
  13. database = "hello_world",
  14. user = "postgres",
  15. host = "DBHOSTNAME"
  16. })
  17. end)