rails capistrano deploy script OS X to Ubuntu
Ok, so in a previous post I described the rabit-hole which is switching to rails. Below’s my capistrano deploy script which solves a number of problems:
- The production server needs a mongrel cluster configuration file added.
- Deployment requires restarting the mongrel cluster.
- On Ubuntu the database.yaml spec has to be modified to because you need to specify a mysql socket path differently from OS X.
So here’s what I added to make it work: