mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
add bootstrap script
This commit is contained in:
@@ -4,8 +4,9 @@ logger = nil
|
||||
harbor = 1
|
||||
address = "127.0.0.1:2526"
|
||||
master = "127.0.0.1:2013"
|
||||
start = "main"
|
||||
preload = "preload example" -- run preload.lua helloworld before every lua service start
|
||||
start = "main" -- main script
|
||||
bootstrap = "snlua bootstrap" -- The service for bootstrap
|
||||
-- preload = "preload example" -- run preload.lua helloworld before every lua service start
|
||||
standalone = "0.0.0.0:2013"
|
||||
luaservice = root.."service/?.lua;"..root.."test/?.lua;"..root.."examples/?.lua"
|
||||
snax = root.."examples/?.lua;"..root.."test/?.lua"
|
||||
|
||||
@@ -4,7 +4,6 @@ local max_client = 64
|
||||
|
||||
skynet.start(function()
|
||||
print("Server start")
|
||||
local service = skynet.newservice("service_mgr")
|
||||
skynet.monitor "simplemonitor"
|
||||
local console = skynet.newservice("console")
|
||||
skynet.newservice("debug_console",8000)
|
||||
|
||||
Reference in New Issue
Block a user