Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a dev, I want to deploy the application using a WSGI server #137

Open
k-allagbe opened this issue Aug 29, 2024 · 0 comments
Open

As a dev, I want to deploy the application using a WSGI server #137

k-allagbe opened this issue Aug 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@k-allagbe
Copy link
Member

Description

Context
Currently, our Dockerfile uses python app.py to deploy the application. This method is fine for development but not ideal for production environments, where a WSGI server is recommended for better performance and handling of concurrent requests.

Problem Statement
Running the application directly with python app.py is not suitable for production as it lacks the robustness and efficiency provided by a WSGI server. This could lead to performance issues and difficulties in handling multiple requests in a real-world scenario.

Acceptance Criteria

  • Replace CMD ["python", "app.py"] in the Dockerfile with a command that uses a WSGI server (e.g., gunicorn or uWSGI).
  • Ensure that the WSGI server is correctly configured to serve the application in production.
  • Update the Dockerfile to reflect this change and ensure it builds successfully.
  • Test the deployment to verify that the application works as expected under the new setup.

Additional Information (Optional)
For reference, consult the Flask deployment documentation on using a WSGI server.

@k-allagbe k-allagbe added the enhancement New feature or request label Aug 29, 2024
@k-allagbe k-allagbe moved this to Todo in FertiScan Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant