Beispiel #1
0
def app_cli():
    args = sys.argv[1:]
    if len(args) < 1:
        print("Usage : \n - Run - to Start the App \n")
        return
    if str(args[0]).lower() == "run":
        app.run(debug=False, host="0.0.0.0")
    else:
        print("Usage : \n - Run - to Start the App \n")
Beispiel #2
0
from apps.app import app
from apps import view
from apps.config import HOST, PORT, DEBUG

if __name__ == '__main__':
    app.run(host=HOST, port=PORT, debug=DEBUG)
Beispiel #3
0
# Run Development Server
from apps.app import app
if __name__ == "__main__":
    app.run(debug=True, host="0.0.0.0")
Beispiel #4
0
from apps.app import app

if __name__ == '__main__':
    app.run(port=5000, debug=True, threaded=True)
Beispiel #5
0
from apps.app import app

if __name__ == "__main__":
    app.run()
Beispiel #6
0
from apps.app import app
from apps.database import init_db
from apps.routes import init_routes

init_db()
init_routes()
app.run(host="0.0.0.0", port=9000, threaded=True)