question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Include deployment suggestion in documentation

See original GitHub issue

It 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bittnercommented, Jan 2, 2017

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:

0reactions
subodh-malgondecommented, May 2, 2019

@bittner I figured it out. I have posted details here https://github.com/evansd/whitenoise/issues/219. Let me know what you think.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found