Exemplo n.º 1
0
from FlaskApp import app
import sys
import logging
import site

logging.basicConfig(stream=sys.stderr)

if __name__ == '__main__':
    app.run(host="0.0.0.0", port=5600)
Exemplo n.º 2
0
#!/usr/bin/python

from FlaskApp import app

app.run(debug=True)
Exemplo n.º 3
0
from FlaskApp import app

app.run(debug=True)
Exemplo n.º 4
0
import os
import sys
sys.path.insert(
    0, os.path.abspath(os.path.join(os.path.dirname(__file__), 'FlaskApp')))
from FlaskApp import app, createApp

createApp(app)

if __name__ == "__main__":
    app.run()
Exemplo n.º 5
0
from FlaskApp import app
app.run(host='0.0.0.0', debug=True)
Exemplo n.º 6
0
from FlaskApp import app

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=8080)
Exemplo n.º 7
0
from FlaskApp import app

if __name__ == "__main__":

    app.run(port="9090", host="127.0.0.1", debug=True)
Exemplo n.º 8
0
import os
from FlaskApp import app

if __name__ == "__main__":
    app.run(host=os.getenv('IP', '127.0.0.1'),
            port=int(os.getenv('PORT', 8080)),
            debug=True)
Exemplo n.º 9
0
from FlaskApp import app

if __name__ == "__main__":
    app.run(ssl_context="adhoc")  
Exemplo n.º 10
0
#import WeiXinCore.WeiXin
import sys

reload(sys)
sys.setdefaultencoding('utf-8')
from FlaskApp import app

app.run(debug=True, port=5000)
Exemplo n.º 11
0
from FlaskApp import app

if __name__ == '__main__':
    app.run(host=app.config.get("FLASK_HOST"),
            port=app.config.get("FLASK_PORT"),
            debug=app.config.get("FLASK_DEBUG"))
Exemplo n.º 12
0
from FlaskApp import app
import sys

#set environment and load proper config
env = sys.argv[0].lower()

if (env == 'production'):
    app.config.from_object('FlaskApp.Instance.config.ProductionConfig')
    app.run(debug=False)
elif (env == 'staging') or (env=='qa'):
    app.config.from_object('FlaskApp.Instance.config.TestingConfig')
    app.run(debug=False)
else:
    app.config.from_object('FlaskApp.Instance.config.DevelopmentConfig')
    app.run(debug=True)
Exemplo n.º 13
0
"""
This script runs the FlaskApp application using a development server.
"""

from os import environ
from FlaskApp import app

if __name__ == '__main__':
    HOST = environ.get('FLASK_RUN_HOST', 'localhost')
    try:
        PORT = int(environ.get('FLASK_RUN_PORT', '5000'))
    except ValueError:
        PORT = 5000
    app.run(HOST, PORT)
Exemplo n.º 14
0
from os import environ
from FlaskApp import app
if __name__ == '__main__':
    HOST = environ.get('SERVER_HOST', 'localhost')
    try:
        PORT = int(environ.get('SERVER_PORT', '5000'))
    except ValueError:
        PORT = 5000
    app.secret_key = 'secret123'
    app.run(HOST, PORT, debug=True, ssl_context='adhoc')
Exemplo n.º 15
0
from FlaskApp import app

app.config['CSRF_ENABLED'] = True
app.config['SECRET_KEY'] = 'iuhiuh3iu1h2o3h1oui2h3981h23921u098123i12'

if __name__ == '__main__':
    app.run(host='0.0.0.0')
Exemplo n.º 16
0
from FlaskApp import app
app.run(debug=True,port=443,host='0.0.0.0',ssl_context='adhoc')
Exemplo n.º 17
0
from FlaskApp import app

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