11 5 / 2012
From two ports to one
by edmundvonderburg
Every now and then a seemingly small change leads to a huge commit. For me this is https://github.com/mysociety/popit/commit/22c9cf8f3673590b9865e81c224dcf8bd5a77f0c which changes the code so that instead of running the hosting app on one port and all the instances on another they now both run on a single port and the code takes care of deciding which app should handle the request.
Obviously this is better - for starters it will allow things like the custom varnish config to be scrapped - varnish now doesn’t need to split the traffic up. It also makes developing easier - there is just a single app to run.
However it will break almost all the installations out there - they will now need to tweak how they are set up. Apologies for this. I tried to make the change backwards compatible but it just was not worth it.
I’ve also updated the install instructions (they are much shorter now).