Include deployment suggestion in documentation
See original GitHub issueIt would be helpful if the WhiteNoise documentation demonstrated how to actually deploy a Django application.
From reading the docs I would guess you’re suggesting to actually run python manage.py runserver
directly. In other words, say with Docker, you would come up with 2 containers, one for Django and one for Postgres, in a simple case. Is that really it? 😟
If not, how would a setup look like that used uWGI or gunicorn (without Nginx or Apache, obviously)? The Django docs unfortunately talk about combining, e.g., uwsgi
with Apache or Nginx just as if that were the only good solution.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Documentation deployments - GitLab Docs
Documentation deployments have dependencies on pipelines and Docker images as follows: ... Create an issue to suggest an improvement to this page.
Read more >Deployment Plan Template
a. Are system requirements documented? Yes b. Have system requirements been reviewed and approved by the designated approvers?
Read more >Best practices for using Deployment Manager - Google Cloud
This page describes the best practices for creating deployments using Google Cloud Deployment Manager. This page is designed for users who are familiar...
Read more >IOS XR Release Strategy and Deployment Suggestion
The purpose of this document is to help you understand the IOS XR software release strategy and help you select the optimal IOS...
Read more >Deployments - Kubernetes
A Deployment provides declarative updates for Pods and ReplicaSets. You describe a desired state in a Deployment, and the Deployment Controller changes the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, Dave, for the instant reply. Happy New Year, by the way! 🍾
No, really, “once you’ve got the wsgi app deployed” is a hard task for many developers. Unfortunately, it’s not done with “do a web search for ´django docker´”.
What I suggest is not doing something that is out of scope of this app and its documentation. It’s avoiding and doing away with misunderstandings, and instead pointing into the right direction. Also, because WhiteNoise changes the way we think about deployment best practices (i.e. web proxy for static files) it’s more than just “provide simple static file handing” as far as the docs are concerned.
I’ve tried to point out that the current documentation may mislead developers into thinking
runserver
is - finally! *sic* - a valid option for production. Actually it’s not.Pure uWSGI, Pure Gunicorn
Can you draft your pure Gunicorn deployment in this ticket and we try to figure out how to best promote a “correct way with WhiteNoise”? In my opinion there are two options:
Option 2 may also translate to:
@bittner I figured it out. I have posted details here https://github.com/evansd/whitenoise/issues/219. Let me know what you think.