mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
add config
This commit is contained in:
1
config
1
config
@@ -10,3 +10,4 @@ standalone = "0.0.0.0:2012"
|
||||
luaservice = root.."service/?.lua;"..root.."service/?/init.lua"
|
||||
cpath = root.."service/?.so"
|
||||
protopath = root.."proto"
|
||||
redis = root .. "redisconf"
|
||||
|
||||
9
lualib/config.lua
Normal file
9
lualib/config.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
local function config(path , pre)
|
||||
assert(path)
|
||||
local env = pre or {}
|
||||
local f = assert(loadfile(path,"t",env))
|
||||
f()
|
||||
return env
|
||||
end
|
||||
|
||||
return config
|
||||
Reference in New Issue
Block a user