show running commit in footer
This commit is contained in:
@ -1,6 +1,13 @@
|
||||
local config = require("lapis.config")
|
||||
local secrets = require("secrets.secrets")
|
||||
|
||||
local commit = nil
|
||||
local f = io.open(".git/refs/heads/main", "r")
|
||||
if f then
|
||||
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!read commit")
|
||||
commit = f:read(8)
|
||||
f:close()
|
||||
end
|
||||
config({"development", "production"}, {
|
||||
port = 8080,
|
||||
server = "nginx",
|
||||
@ -11,6 +18,7 @@ config({"development", "production"}, {
|
||||
},
|
||||
secret = "SUPER SECRET",
|
||||
session_name = "porom_session",
|
||||
commit = commit,
|
||||
})
|
||||
|
||||
config("production", {
|
||||
|
Reference in New Issue
Block a user