<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 May 2013 14:51, Harry Percival <span dir="ltr"><<a href="mailto:harry.percival@gmail.com" target="_blank">harry.percival@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Interesting points both.  I think it's insightful to think about the line beween provisioning and deployment... The idea that deployment shouldn't require root permissions is a good stake in the ground.<br>



<br></div>In the book I've decided I'm going to take people through spinning up a server with Apache, and configuring two virtualhosts with mod_wsgi, one for staging and one for production.   We negotiate the gotchas, including setting up static files, using absolute paths and getting the permissions right for the (sqlite) database, etc.<br>



<br></div><div>Then, deployment is a matter of updating the source code, updating any static files, and bouncing apache.<br><br></div><div>Provisioning:<br></div><div>- spinning up a server<br></div><div>- installing apache<br>



</div><div>- configuring apache<br><br></div><div>Deployment:<br></div><div>-updating source code<br></div><div>-updating static files<br></div><div>-migrate database<br></div><div>-restart apache<br><br></div><div>For those, the root/non-root perms thing holds pretty well, apart from the "restart apache" bit...  And, up to a certain point, what I talk about under "provisioning" is stuff that might vary from platform to platform, but stuff under "deployment" should be more universal...<br>

<br></div></div></div></div></div></blockquote>you shouldn't need to restart apache/nginx. <div>Touch the wsgi file and that part should restart automatically.</div><div> </div></div></div></div>