Change Cart disposition
This commit is contained in:
12
main.py
12
main.py
@@ -5,20 +5,22 @@ from src.api.routes import api_bp
|
||||
from flask_sse import sse
|
||||
from config import config
|
||||
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
CORS(app)
|
||||
|
||||
|
||||
env = os.environ.get('FLASK_ENV', 'default')
|
||||
app.config.from_object(config[env])
|
||||
|
||||
|
||||
app.register_blueprint(sse, url_prefix='/stream')
|
||||
app.register_blueprint(api_bp, url_prefix='/api')
|
||||
|
||||
|
||||
return app
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
port = int(os.environ.get("PORT", 5000))
|
||||
port = int(os.environ.get("PORT", 5000))
|
||||
|
||||
app = create_app()
|
||||
app.run(host='0.0.0.0', port=port, debug=True)
|
||||
app.run(host='0.0.0.0', port=port, debug=True)
|
||||
|
||||
Reference in New Issue
Block a user