from api.main import app if __name__ == "__main__": app.run()
from api.main import app if __name__ == "__main__": #app.run(debug=True,port=5000) app.run(debug=True, port=process.env.PORT)
"""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)
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)
# 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)
from api.main import app if __name__ == "__main__": app.run(host='0.0.0.0', port=5000)
from api.main import app app.run(host='0.0.0.0', port=80, debug=True)