preload script example

This commit is contained in:
Cloud Wu
2014-04-29 20:06:59 +08:00
parent 12f46d21fe
commit fa6191d9ed
2 changed files with 1 additions and 2 deletions

View File

@@ -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"

View File

@@ -1,7 +1,5 @@
-- This file will execute before every lua service start
-- See config
local skynet = require "skynet"
print("PRELOAD", ...)