from master import app if __name__ == '__main__': app.debug = True app.run()
from master import app, db, app, keys from config import config from os import environ if __name__ == "__main__": keys.init_keys() config_state = environ.get("VIZUALISER_ENV", "dev") app.config.update(config[config_state]) app.app_context().push() db.create_all() db.session.commit() app.run("0.0.0.0", debug=True)
#!/usr/bin/env python3 from master import app app.run(debug=True)
""" This script runs the Master application using a development server. """ from os import environ from master import app if __name__ == '__main__': app.run(host='0.0.0.0', port=80, debug=True)
#!/usr/bin/env python3 from master import app app.run(debug=True, threaded=True)
""" This script runs the Master application using a development server. """ from os import environ from master import app if __name__ == '__main__': app.run(host=environ['IW4MADMIN_BIND_ADDRESS'], port=environ['IW4MADMIN_BIND_PORT'], debug=False)
import os from flask import redirect, url_for from master import app from master.core.config import Config debug = True @app.route("/", methods=["GET"]) def route_index(): return redirect(url_for('user_blueprint.route_index')) if __name__ == '__main__': app.secret_key = os.urandom(12) if debug: app.run(use_debugger=True, use_reloader=True, passthrough_errors=True, port=Config.get('connection', 'internal_port'), host="0.0.0.0", threaded=True) else: app.run(port=Config.get('connection', 'internal_port'), host="0.0.0.0", threaded=True)
from master import app if __name__ == '__main__': app.run(debug=True, host='0.0.0.0')