Note that there are some explanatory texts on larger screens.

plurals
  1. POSeamless deployment of Django to single server
    primarykey
    data
    text
    <p>I have a new website built on Django and Python 2.6 which I've deployed to the cloud (buzzword compliant AND the Amazon micro EC2 instance is free!).<br> Here are my detailed notes: <a href="https://docs.google.com/document/d/1qcZ_SqxNcFlGKNyp-CXqcFxXXsKs26Avv3mytXGCedA/edit?hl=en_US" rel="nofollow noreferrer">https://docs.google.com/document/d/1qcZ_SqxNcFlGKNyp-CXqcFxXXsKs26Avv3mytXGCedA/edit?hl=en_US</a></p> <p>As this is a new site (and wanting to play with the latest and greatest) I used Nginx and Gunicorn on top of Supervisor.<br> All software installed from trunk using YUM / easy_install.<br> My database is Sqlite (for now - not sure of where to go next, but that is not the question). Also on the todo list: virtualenv + pip.<br> So far so good.<br> My code in in SVN. I wrote a simple fabfile to deploy - checks out the latest code and restarts Gunicorn via Supervisor. I hooked my DNS name to an Elastic IP.<br> <strong>It works.</strong></p> <p>My question is, how do I update the site without a disruption of service? Users of the site get 404s / 500s when I run my little update script.</p> <p>Is there a way to do this without adding another server (price is key)?</p> <p>I would love to have a staging system (on a different port?) and a seamless switch between Staging and Production. On the same (free) server. Via Fabric.<br> How do I do that? Is it the same Nginx running both sites? Can I upgrade Staging without hurting Production? What would the fabfile look like? What would the directory tree look like?</p> <p>Thanks!</p> <p>Tal.</p> <p>Related: </p> <ul> <li><a href="https://stackoverflow.com/questions/2107615/seamless-deployment-in-rails">Seamless deployment in Rails</a></li> - </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload