RailsCasts Pro episodes are now free!

Learn more or hide this

Jefferson Queiroz Venerando's Profile

GitHub User: shamanime

Site: shamani.me

Comments by Jefferson Queiroz Venerando

Avatar

Just in case someone is interested to know, in Ubuntu versions 11.10 (Oneiric Ocelot) and onwards the "admin" group is not going to be provided by default. The power that be are favouring the "sudo" group instead of "admin" group. If you're upgrading from a lower version, your "admin" group will persist but on a fresh install "admin" group will be missing.

So if you get an error that "admin" group does not exist, simply replace it with "sudo".

adduser deployer --ingroup sudo

Credits to Aditya Sanghi, here: http://railscasts.com/episodes/337-capistrano-recipes?view=comments#comment_157369

Avatar

Mike's answer is awesome, just adding my two cents:
The find_by isn't supposed to fail in any way, you expect to find a blog for your subdomain. If it fails you probably want something to happen (an exception rather than a fallback).

Avatar

In your shell:
export VAR=value

Or...

echo '\nexport VAR=value' >> ~/.bash_profile
then
source ~/.bash_profile