How does capistrano get the ENV?

I don’t have the same environment variables with a capistrano task as I
do with a conventional ssh session.

When I ssh in and try “env” I see my GEM_HOME and GEM_PATH environment
variables from my ~/.bash_profile (I also have a .gemrc file).

But when I try “cap shell” and “env” I don’t see the GEM_HOME and
GEM_PATH environment variables.

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 ?

thanks!