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)
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)