change source dir

This commit is contained in:
云风
2012-08-09 15:36:56 +08:00
parent d23c4aa905
commit eed9c42fd4
46 changed files with 284 additions and 118 deletions

22
service/main.lua Normal file
View File

@@ -0,0 +1,22 @@
local skynet = require "skynet"
skynet.dispatch()
skynet.start(function()
print("Server start")
local launcher = skynet.launch("snlua","launcher")
print("launcher", launcher)
local console = skynet.launch("snlua","console")
print("console",console)
local watchdog = skynet.launch("snlua","watchdog")
print("watchdog",watchdog)
local gate = skynet.launch("gate","8888 4 0")
print("gate",gate)
local db = skynet.launch("snlua","simpledb")
print("simpledb",db)
local connection = skynet.launch("connection","256")
print("connection",connection)
local redis = skynet.call(".launcher", "broker .redis snlua redis-cli 127.0.0.1:6379")
print("redis",redis)
skynet.exit()
end)