def runserver(debug, no_reload, address, port, timeout, workers, socket): """Starts a Superset web server.""" debug = debug or config.get('DEBUG') if debug: print(Fore.BLUE + '-=' * 20) print( Fore.YELLOW + 'Starting Superset server in ' + Fore.RED + 'DEBUG' + Fore.YELLOW + ' mode') print(Fore.BLUE + '-=' * 20) print(Style.RESET_ALL) app.run( host='0.0.0.0', port=int(port), threaded=True, debug=True, use_reloader=no_reload) else: addr_str = ' unix:{socket} ' if socket else' {address}:{port} ' cmd = ( 'gunicorn ' '-w {workers} ' '--timeout {timeout} ' '-b ' + addr_str + '--limit-request-line 0 ' '--limit-request-field_size 0 ' 'superset:app').format(**locals()) print(Fore.GREEN + 'Starting server with command: ') print(Fore.YELLOW + cmd) print(Style.RESET_ALL) Popen(cmd, shell=True).wait()
def runserver(debug, no_reload, address, port, timeout, workers, socket): """Starts a Superset web server.""" debug = debug or config.get("DEBUG") if debug: print(Fore.BLUE + '-=' * 20) print( Fore.YELLOW + "Starting Superset server in " + Fore.RED + "DEBUG" + Fore.YELLOW + " mode") print(Fore.BLUE + '-=' * 20) print(Style.RESET_ALL) app.run( host='0.0.0.0', port=int(port), threaded=True, debug=True, use_reloader=no_reload) else: addr_str = " unix:{socket} " if socket else" {address}:{port} " cmd = ( "gunicorn " "-w {workers} " "--timeout {timeout} " "-b " + addr_str + "--limit-request-line 0 " "--limit-request-field_size 0 " "superset:app").format(**locals()) print(Fore.GREEN + "Starting server with command: ") print(Fore.YELLOW + cmd) print(Style.RESET_ALL) Popen(cmd, shell=True).wait()
def runserver(debug, no_reload, address, port, timeout, workers, socket): """Starts a Superset web server.""" debug = debug or config.get("DEBUG") if debug: print(Fore.BLUE + '-=' * 20) print(Fore.YELLOW + "Starting Superset server in " + Fore.RED + "DEBUG" + Fore.YELLOW + " mode") print(Fore.BLUE + '-=' * 20) print(Style.RESET_ALL) app.run(host='0.0.0.0', port=int(port), threaded=True, debug=True, use_reloader=no_reload) else: addr_str = " unix:{socket} " if socket else " {address}:{port} " cmd = ("gunicorn " "-w {workers} " "--timeout {timeout} " "-b " + addr_str + "--limit-request-line 0 " "--limit-request-field_size 0 " "superset:app").format(**locals()) print(Fore.GREEN + "Starting server with command: ") print(Fore.YELLOW + cmd) print(Style.RESET_ALL) Popen(cmd, shell=True).wait()
def runserver(debug, address, port, timeout, workers): """Starts a Superset web server""" debug = debug or config.get("DEBUG") if debug: app.run(host='0.0.0.0', port=int(port), threaded=True, debug=True) else: cmd = ("gunicorn " "-w {workers} " "--timeout {timeout} " "-b {address}:{port} " "--limit-request-line 0 " "--limit-request-field_size 0 " "superset:app").format(**locals()) print("Starting server with command: " + cmd) Popen(cmd, shell=True).wait()
def debug_run(app, port, use_reloader): return app.run( host='0.0.0.0', port=int(port), threaded=True, debug=True, use_reloader=use_reloader)
def runserver(debug, address, port, timeout, workers): """Starts a Superset web server""" debug = debug or config.get("DEBUG") if debug: app.run( host='0.0.0.0', port=int(port), threaded=True, debug=True) else: cmd = ( "gunicorn " "-w {workers} " "--timeout {timeout} " "-b {address}:{port} " "--limit-request-line 0 " "--limit-request-field_size 0 " "superset:app").format(**locals()) print("Starting server with command: " + cmd) Popen(cmd, shell=True).wait()
from superset import app app.run(debug=True, host='0.0.0.0', port=8088)
from superset import app app.run(debug=True, host='127.0.0.1', port='8088')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/10/17 10:48 上午 # @Author : YanLi # @File : run.py # @Software: IntelliJ IDEA from superset import app app.run(debug = True, host = "0.0.0.0", port = 8089)
from superset import app app.run(host='0.0.0.0', port=8999)