diff --git a/examples/config b/examples/config index 9dafc939..f89af28b 100644 --- a/examples/config +++ b/examples/config @@ -9,5 +9,6 @@ bootstrap = "snlua bootstrap" -- The service for bootstrap standalone = "0.0.0.0:2013" luaservice = root.."service/?.lua;"..root.."test/?.lua;"..root.."examples/?.lua" lualoader = "lualib/loader.lua" +-- preload = "./examples/preload.lua" -- run preload.lua before every lua service run snax = root.."examples/?.lua;"..root.."test/?.lua" cpath = root.."cservice/?.so" diff --git a/examples/preload.lua b/examples/preload.lua index 84f75d3e..f4f31034 100644 --- a/examples/preload.lua +++ b/examples/preload.lua @@ -1,7 +1,5 @@ -- This file will execute before every lua service start -- See config -local skynet = require "skynet" - print("PRELOAD", ...)