Skip to main content
  1. Posts/

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:

  1. The production server needs a mongrel cluster configuration file added.
  2. Deployment requires restarting the mongrel cluster.
  3. 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:

dtedcDtedcDtedaiDteeaneoEaneoEaneftEansssrsdsnSsrddsnSsdrdstSsccdckuuucfCkuecfCkbucewCkoodndinv-i_nrinn":oog:ecg:cl:ffRr"uc"luco"ulaiiee"c"-roco#-ronc-pfggssed/Dendp{DenfpDdbtuuttcuEfmcEfiEaeerraah#sSti#euStig#Streerro{rChg{nrChg{Cia___ttc/euctreu=dnpumd,'ulruerbgppoatfromer-nme"_rdnth:irco_rpto_#cwoagaerseanme_nd{oeptrbohnlgon9pgasnreeawl't/rnt0arthfni,lsee"_aeg_0teaaieaebspplrp0hlbrget:#aaea}ae}dlrs=btcclt-csdyoe>ohhlha-le_#tlrg}eud}Nup{olev:u/so1sdacaseas&bt&22totuaurp&ie&7ehrdn=pcnr.r}rdc>aos/m0-/ehndmuao.ucnbe:domdpn0sotadaaoag.en_c.pmncr1rfpkpodmheianoel-ogtiWdgtnc_Pm/hneorogtrd}erla#a/talmei{-tchlalglsgaoesck_rshrbnoleraaoafmuaccrusionssielepegnetulfud./geedsus_oydrdroltpmmae"c"ea"ltltwlrt"aoou:hbcrs:}aouktcsnpepefdirni.ian:fdygt:ismuetrg/lrheum"atesrothtenieragour-rndnteea"lftc.iaoplbmieamdsasenodctohnaftigwhfeinlerestartiscalled