예제 #1
0
from master import app

if __name__ == '__main__':
    app.debug = True
    app.run()
예제 #2
0
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)

예제 #3
0
#!/usr/bin/env python3
from master import app
app.run(debug=True)
예제 #4
0
"""
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)
예제 #5
0
#!/usr/bin/env python3
from master import app
app.run(debug=True, threaded=True)
예제 #6
0
"""
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)
예제 #7
0
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)
예제 #8
0
from master import app

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0')