Keith Pitty <[EMAIL PROTECTED]> wrote:
>I'm trying to use Capistrano to deploy an application that I only  
>need to use locally onto OS X.  The cold deploy gets most of the way  
>through until it hits a snag during the start task.  My spin script  
>is set up to start a Mongrel cluster via the spawner script.  This is  
>where I am having problems.  When I look at the nohup.out file I see:
>
>/u/apps/xxx/current/script/process/../../config/boot.rb:18:in  
>`require': No such file to load -- rubygems (LoadError)
>         from /u/apps/xxx/current/script/process/../../config/boot.rb:18
>         from /u/apps/xxx/current/script/process/spawner:2:in `require'
>         from /u/apps/xxx/current/script/process/spawner:2
>
>I can't figure out why boot.rb cannot find rubygems.  Rubygems is, of  
>course, installed.  My app runs fine in development mode via port ...
... snip ...

For giggles, try setting RUBYOPT in your OS X environment. Edit
~/.MacOSX/environment.plist and add something like the following:

<key>RUBYOPT</key>
<string>-rubygems</string>

Make sure it is being set on the user that you are using for deployment.
Alternatively, you could set this in your .profile. This will work for
capistrano since it will get a shell via SSH, but the above setting will
also have effect if you aren't in a shell. Pick your poison.

Take care,

Louis

-- 
Louis R. Marascio - www.fitnr.com
... fixed in the next release ...

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to