I’ve been using account_location
for a couple of
applications recently. It’s a really nice way to give individual
‘clients’ of an application their own domain and when we come to
scaling up, it’s a really easy way of splitting customers across
several hosts. So, yeah, very nice. And it’s dead easy to deploy
in the first instance – a couple of DNS records along the lines
of:
@ IN A 1.2.3.4
* IN A 1.2.3.4
There you go, every host in that domain points to 1.2.3.4.
However, it’s a pest for setting up in your development
environment. OK, so you can edit /etc/hosts
and add
an entry for every single account you happen to create. This
hinders development for me — each domain has to be
unique, so whenever I want to create a new account, I have to do
so in Rails, …