Beispiel #1
0
def start_master(config_path):
    """启动 master 模块
    @param  config_path : 配置文件路径
    """
    master = Master()
    master.config(config_path, 'src/start_server.py')
    master.start()
Beispiel #2
0
#coding:utf8

import os
if os.name!='nt' and os.name!='posix':
    from twisted.internet import epollreactor
    epollreactor.install()

if __name__=="__main__":
    from firefly.master.master import Master
    master = Master()
    master.config('config.json','appmain.py')
    master.start()
    
    
Beispiel #3
0
#coding:utf8

import os
if os.name != 'nt':
    from twisted.internet import epollreactor
    epollreactor.install()

if __name__ == "__main__":
    from firefly.master.master import Master
    master = Master()
    master.config('config.json', 'appmain.py')
    master.start()
#coding:utf8

import os
from firefly.master.master import Master

# if not NT and POSIX, use epoll
if os.name != "nt" and os.name != "posix":
    from twisted.internet import epollreactor
    epollreactor.install()

# start master, master will read config and start other server in subprocess
if __name__ == "__main__":
    master = Master()
    master.config("config.json", "appmain.py")
    master.start()
    
    
Beispiel #5
0
#coding:utf8
'''
Created on 2013-8-2

@author: lan (www.9miao.com)
'''
import os
if os.name!='nt':
    from twisted.internet import epollreactor
    epollreactor.install()
    
def println(a):
    print a

if __name__=="__main__":
    from firefly.master.master import Master
    master = Master()
    master.config('config.json','test_server_main.py')
    master.start()
    
    
# coding:utf8
"""
Created on 2013-8-2

@author: lan
"""
import os

if os.name != "nt":
    from twisted.internet import epollreactor

    epollreactor.install()


def println(a):
    print a


if __name__ == "__main__":
    from firefly.master.master import Master

    master = Master()
    master.config("config.json", "test_server_main.py")
    master.start()
if __name__ == "__main__":
    from firefly.master.master import Master
    master = Master()
    master.config('config.json', "appmain.py")
    master.start()
Beispiel #8
0
#coding:utf8
'''
Created on 2013-8-2

@author: lan (www.9miao.com)
'''
import os
if os.name!='nt':
    from twisted.internet import epollreactor
    epollreactor.install()
    
def println(a):
    print a

if __name__=="__main__":
    from firefly.master.master import Master
    master = Master()
    master.config('config.json','test_server_main.py')
    master.start()