예제 #1
0
from api.main import app

if __name__ == "__main__":
    app.run()
예제 #2
0
from api.main import app
if __name__ == "__main__":
    #app.run(debug=True,port=5000)
    app.run(debug=True, port=process.env.PORT)
예제 #3
0
파일: wsgi.py 프로젝트: cisagov/con-pca-api
"""Wsgi."""
# cisagov Libraries
from api.config.environment import API_HOST, API_PORT
from api.main import app

if __name__ == "__main__":
    app.run(host=API_HOST, port=API_PORT)
예제 #4
0
from api.main import app 
from flask_cors import CORS
import os
#from waitress import serve
#1234

app.config["DEBUG"] = False
CORS(app)

if __name__ == "__main__":
	port = int(os.environ.get('PORT',5000))
	app.run(host='127.0.0.1',port=port)
예제 #5
0
# api entry point
import os

from api.main import app

FLASK_DEBUG = bool(os.environ.get("FLASK_DEBUG", False))

if __name__ == "__main__":
    app.run(debug=FLASK_DEBUG)
예제 #6
0
from api.main import app 

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=5000)

예제 #7
0
from api.main import app

app.run(host='0.0.0.0', port=80, debug=True)