Chimoney / chimoney-community-projects

Repo for Community Contributors
http://api.chimoney.io/
MIT License
136 stars 172 forks source link

Update run.py #430

Open chawdamrunal opened 1 month ago

chawdamrunal commented 1 month ago

Hello @phyleria

The issue here is that using app.run() directly in a Flask application is discouraged, especially in production environments, because it exposes the application to potential security risks. The built-in development server in Flask is not designed to be used in production and lacks some security features that production-ready servers offer (e.g., gunicorn, uWSGI).

To address this, you can change your code to avoid using app.run() directly. Instead, you should use a production-ready WSGI server.

chawdamrunal commented 1 month ago

@phyleria kindly add hacktoberfest-accepted label.

phyleria commented 1 month ago

Sure ✅

phyleria commented 3 weeks ago

Hi @chawdamrunal,

Would you be able to work on the changes that @todak2000 suggested?