示例#1
0
def start(args):
    """Start the server.

    With no arguments, starts the server in development mode using the
    configuration found in `deveopment.ini` and a hot code reloader enabled.
    """
    if not len(args):  # Default to dev mode
        pserve.ensure_port_cleanup([('0.0.0.0', 5000)])
        args.append('development.ini')
        args.append('--reload')

    pserve.main(['hypothesis'] + args)
示例#2
0
文件: script.py 项目: arjunvasan/h
def start(args):
    """Start the server.

    With no arguments, starts the server in development mode using the
    configuration found in `deveopment.ini` and a hot code reloader enabled.
    """
    if not len(args):  # Default to dev mode
        pserve.ensure_port_cleanup([('0.0.0.0', 5000)])
        args.append('development.ini')
        args.append('--reload')

    pserve.main(['hypothesis'] + args)
示例#3
0
def start(args):
    """Start the server.

    With no arguments, starts the server in development mode using the
    configuration found in `deveopment.ini` and a hot code reloader enabled.
    """
    if not len(args):  # Default to dev mode
        args.append('development.ini')
        args.append('--reload')
        args.append('--monitor-restart')

    from pyramid.scripts.pserve import ensure_port_cleanup, main

    ensure_port_cleanup([('0.0.0.0', 5000)])
    main(['hypothesis'] + args)
示例#4
0
文件: script.py 项目: 3divs/h
def start(args):
    """Start the server.

    With no arguments, starts the server in development mode using the
    configuration found in `deveopment.ini` and a hot code reloader enabled.
    """
    if not len(args):  # Default to dev mode
        args.append('development.ini')
        args.append('--reload')
        args.append('--monitor-restart')

    from pyramid.scripts.pserve import ensure_port_cleanup, main

    ensure_port_cleanup([('0.0.0.0', 5000)])
    main(['hypothesis'] + args)