Closed axelthat closed 3 years ago
My bad, I didn't read the docs thoroughly. Actually you have to create config.lua
inside your root project directory and add all the configs there.
Example:
touch <myproject>/config.lua
And add following contents:
local config = require("lapis.config")
config({"development", "production"}, {code_cache = "on"})
And remove the config details from app.lua
In
app.lua
I have following:As you can see I have
code_cache
set toon
. But when I dolapis server
, the compiled version of NGINX configuration haslua_code_cache off;
. How do I fix this?