News for hackers. Stuff that matters.
Re:Python Deployment Anti-Patterns by hynek on Monday April 23, 2012 @05:15PM (#3881014)
That’s a plus too. An “aptitude dist-upgrade” is really fast.
Re:Python Deployment Anti-Patterns by St-Clock on Tuesday April 24, 2012 @06:19AM (#3883239)
Yes, but unless rpm/deb works with softlinks, it is not atomic right? Do you do anything before/after dist-upgrade or is it included in the pre/post install script?

For example, for our deployment, we rely on softlinks and uwsgi robust reload behavior to avoid losing requests. I've seen many devops who were using hg update/git update as a way to "deploy" (arg!), but I'm not sure about the behavior of deb/rpm.

Re:Python Deployment Anti-Patterns by hynek on Tuesday April 24, 2012 @06:31AM (#3883264)
You can do whatever you want inside of the post-install hooks which are just shell scripts. Including any kind of soft link black magic. :)

And you’re right: replacing files of a running application can lead to all kind of weirdness. I’d even prefer to lose some requests than to risk that.