3 ms·
Great idea on deployment, wish I had said the same. PaaS's are great but if there was officially supported boilerplate for supervisor/gunicorn/uwsgi/nginx/postg
by rattray 12y ago
Great idea on deployment, wish I had said the same. PaaS's are great but if there was officially supported boilerplate for supervisor/gunicorn/uwsgi/nginx/postgres, say, on Docker, that would make life terrific.
- mrfusion 12y agoThat's a great idea! An official docker (and/or AMI?) that has everything set up and optimized, and you just add your project to a specific directory! Django could release and update with every release.
- jsmeaton 12y agoFYI some people are working on putting a (probably) docker image together for testing purposes. The point being that contributors can test their changes to all backends on their own terms. I'm hoping it won't be too hard to add a deployment story at the end. Deployment is a pain. Perhaps some official tutorials would be good in the interim.
- rattray 12y agoAn official tutorial would be great in any case, with or without an accompanying Dockerfile!
- jessejmc 12y agoThere is an Apache/mod_wsgi image from the mod_wsgi maintainer. It was pretty easy to set up, and Graham has more in depth documentation on his blog. https://github.com/GrahamDumpleton/mod_wsgi-docker https://github.com/GrahamDumpleton/mod_wsgi-docker I've been evaluating using uwsgi as a stand-alone server. I'm not sure how much load it would support, but I think it's possible get quite far with Django, sqlite, and uwsgi.
- ivan_ah 12y agoHere's an example of a run of the mill 'nginx', 'gunicorn', 'supervisord' setup: https://github.com/Pakebo/eb-docker-django-simple/blob/master/Dockerfile https://github.com/Pakebo/eb-docker-django-simple/blob/maste...