Meme-service/src/app.py

19 lines
326 B
Python
Executable File

#!/usr/bin/python
# Entry point
from flask import Flask
from api import api
import os
import logging
logging.basicConfig(level=logging.DEBUG)
isDebug = bool(os.environ.get('DEBUG', False))
port = int(os.environ.get('PORT', 5000))
app = Flask(__name__)
api.init_app(app)
app.run(debug=isDebug, host='0.0.0.0', port=port)