mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
preload script example
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
-- This file will execute before every lua service start
|
||||
-- See config
|
||||
|
||||
local skynet = require "skynet"
|
||||
|
||||
print("PRELOAD", ...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user