I'm attempting to deploy my first RoR app using capistrano with a few gems (that Dreamhost doesn't provide) in my own local directory.
Some things work, such as "cap deploy". But "cap migrate" wants one of my local gems and can't find it.
Here's my ~/.bash_profile:
and I have a .gemrc file, too.
When I ssh in and try "env" I get:
Here's where things get interesting.
When I try "cap shell" and "env" I don't see the GEM_HOME and GEM_PATH environment variables.
$ cap shell
loading configuration /Applications/Locomotive2/Bundles/rmagickRailsSept2006_ppc.locobundle/framework/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/recipes/standard.rb
loading configuration ./config/deploy.rb
* executing task shell
[establishing connection(s) to fdmoves.info]
[fdmoves.info] executing command
It appears capistrano doesn't have the same environment when it runs, so it doesn't know the GEM_HOME and GEM_PATH.
So here's my question. How do I force capistrano to pick up the shell environment variables when it runs? Why doesn't it pick up the environment variables that are set in my ~/.bash_profile ?
Any suggestions will be most welcome!