Closed o-rey closed 4 years ago
Here's my app code:
local lapis = require("lapis") local app = lapis.Application() local config = require("lapis.config") config("development", { port = 443 }) app:get("/", function() return "ENV is " .. config.get()._name .. " PORT is " .. config.get().port end) return app
Result is
ENV is development PORT is 8080
So the value is unchanged.
Tried to change any other variable - still no luck.
What am I doing wrong?
openresty/1.17.8.2
hmmm sorry my bad. found the issue
Here's my app code:
Result is
So the value is unchanged.
Tried to change any other variable - still no luck.
What am I doing wrong?
openresty/1.17.8.2