示例#1
0
文件: edb.py 项目: fantix/edgedb
def server(version=False, **kwargs):
    if version:
        print(f"edb, version {buildmeta.get_version()}")
        sys.exit(0)

    os.environ['EDGEDB_DEBUG_SERVER'] = '1'
    debug.init_debug_flags()
    srv_main.server_main(insecure=True, **kwargs)
示例#2
0
文件: edb.py 项目: stjordanis/edgedb
def server(version=False, **kwargs):
    if version:
        print(f"edb, version {buildmeta.get_version()}")
        sys.exit(0)

    os.environ['EDGEDB_DEBUG_SERVER'] = '1'
    debug.init_debug_flags()
    kwargs['security'] = srv_args.ServerSecurityMode.InsecureDevMode
    logsetup.setup_logging(kwargs['log_level'], kwargs['log_to'])
    srv_main.server_main(**kwargs)
示例#3
0
def server(**kwargs):
    os.environ['EDGEDB_DEBUG_SERVER'] = '1'
    debug.init_debug_flags()

    srv_main.server_main(insecure=True, **kwargs)