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

Allow for 'classic' gunicorn running #138

Merged
merged 6 commits into from
May 1, 2024
Merged

Allow for 'classic' gunicorn running #138

merged 6 commits into from
May 1, 2024

Conversation

kkaris
Copy link
Contributor

@kkaris kkaris commented Apr 30, 2024

This PR adds code that allows the gilda app to be run with gunicorn.

To run with gunicorn:

gunicorn -w 2 -b :8000 -t 600 gilda.app:gunicorn_app

To run as module:

python -m gilda.app --port 8000 --host 127.0.0.5

@kkaris kkaris requested a review from bgyori April 30, 2024 22:59
gilda/app/__init__.py Outdated Show resolved Hide resolved
@bgyori
Copy link
Member

bgyori commented May 1, 2024

I changed the implementation to remove the redundancy between init and main, and renamed the default app to gilda_app which doesn't conflict with the app submodule but isn't specific to gunicorn.

@bgyori bgyori merged commit 0326482 into master May 1, 2024
4 checks passed
@kkaris kkaris deleted the gunicorn branch May 1, 2024 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants