Exemple #1
0
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)
Exemple #2
0
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)
Exemple #3
0
def server(**kwargs):
    os.environ['EDGEDB_DEBUG_SERVER'] = '1'
    debug.init_debug_flags()

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