Mike Nicholaides
2008-Mar-28 14:19 UTC
capistrano - want to environment variable to be set
I''m running centos on my server, and naturally, I''m using capistrano to deploy rails. I have a script, /etc/profile, that runs when I log in via ssh. It sets a bunch of environment variables like PATH, and GEM_HOME. However, when I run a command from capistrano, like> run "rake db:migrate"it can''t find rake, because /etc/profile is never run (and never sets PATH), even though I''m using the same user as when I ssh in manually. Any ideas how I can make sure /etc/profile is run before every capistrano shell session? Thanks, Mike -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---