Is your deploy A.I.R -tight?

Code deployment is a tricky thing. Often it is overlooked and hacked together at the last minute. However in a certain light it could be the most important piece of code you write. Without it, your other code might as well not exist. So how do we tell if we…

3 steps to better code deploys.

We've all been there. Its crunch time, a critical bug has been found and you need to deploy a fix asap. Its an easy one to fix, a one-liner. But you know it takes 2 hours to deploy the fix. Possibly longer. And you have a ton of other things…

Packaging a Flask app in a Debian package

Previously I showed how to package a python Flask app into a python source distribution for repeatable deployments. This works reasonably well but has a few draw backs. No ability to create dependencies on system packages Packaging static files was a bit cumbersome Installation at deployment time takes too long…

An ubuntu mirror to call your own

Having your own native package repository can be really handy once you have multitple servers and code bases to deploy. This article will walk you though mirroring the Ubuntu official repositories, and then adding your own PPA server into the mix so that you deploy your own private native packages.…

Packaging a flask web app

So you have trawled data.sfgov.org and decided that what the world really needs is a website that tells me where all the food trucks are. Great. You've built it (wow that was fast!) and now you need to deploy it. Its now time to package it into a…

How to have your own pypi, and eat it too

There are a couple of reasons to host your own pypi server. You have private python packages that you want to distribute to your own servers. You want your deployments to be uninterrupted by network downtime or pypi downtime. You want to speed up your deployments and continuous integration testing…