def science(args): from ooiui.core.app import app import ooiui.core.routes.common import ooiui.core.routes.science app.run(host='localhost', debug=True)
def science(args): import ooiui.core.routes.common import ooiui.core.routes.science import ooiui.core.routes.c2 import ooiui.core.routes.aa import ooiui.core.routes.m2m if app.config['DEBUG'] == True: app.add_url_rule('/site-map', 'site_map', site_map) app.run(host='localhost', debug=True)
def science(args): import ooiui.core.routes.common import ooiui.core.routes.science import ooiui.core.routes.c2 import ooiui.core.routes.aa import ooiui.core.routes.m2m if app.config['DEBUG'] == True: app.add_url_rule('/site-map', 'site_map', site_map) app.run(host=app.config['UI_APP_IP'], port=app.config['UI_APP_PORT'], debug=app.config['DEBUG'])
#!/usr/bin/env python ''' WSGI.py ''' import argparse from flask import jsonify, url_for from ooiui.core.app import app import ooiui.core.routes.common import ooiui.core.routes.science import ooiui.core.routes.c2 import ooiui.core.routes.aa if __name__ == '__main__': app.run(host='localhost:5000', debug=True)