You gotta give PHP credit here. They did deployment better than anybody. Django as a community could stand to put more concentrated work into deployment.
On Tuesday, September 15, 2015 at 3:27:49 PM UTC-5, Nikolas Stevenson-Molnar wrote: > > I second the nginx/gunicorn/django/supervisor stack. I've used it many > times; it's relatively easy to get everything installed and set up, and all > the involved components are ready for prime time. > > I think the "difficult to set up" sentiment is probably in comparison to > something like PHP. So many servers have already have the LAMP stack, so > deployment is just dropping your source in the correct directory and making > sure the permissions are right. So it's not that Django is *unnecessarily* > difficult, but it's certainly a bit more involved than a PHP app. > > On 9/15/2015 1:02:36 PM, Michiel Overtoom <[email protected] <javascript:>> > wrote: > Hi Hugo, > > > I keep hearing that Django deployment is unnecessarily difficult. > > Who says this? And what are the reasons they give for it? > > > > For a website with very little traffic, and for somebody who's new to it > all, what is the best way to deploy? And how should I go about deploying! > > I can tell you how I do it, which is not necessarily the simplest way nor > especially suited to low traffic. But it's not that hard. On the server > machine, I install nginx, gunicorn, django and supervisor. Nginx will be > the frontend, gunicorn will be the webserver, django is the application > server, and supervisor will be used to start/stop/restart the web > application. > > I basically did the same as Shawn. In my supervisord.conf I have these > lines: > > [program:myapp] > command=/usr/local/bin/gunicorn myapp.wsgi -b 127.0.0.1:9999 > directory=/wwwapp/myapp/my > environment=PATH="%(ENV_PATH)s:/usr/local/bin" > user=root > autostart=true > autorestart=true > stdout_logfile=NONE > stderr_logfile=NONE > > I also wrote a blog article about this subject: > http://www.michielovertoom.com/freebsd/flask-gunicorn-nginx-supervisord/ > which uses Flask as an example, but as Shawn said, it's easy to plug in > your Django app instead. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/6DFD6635-480E-43A1-B7CC-2C5FA826185C%40xs4all.nl. > > > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f1692b82-4894-4c1f-bd88-3a7f32005fd5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

