I suspect it reports that because /opt/local/bin is in the path, and I
suspect it was put in the path by .bashrc (or some similar mechanism).

Note that (currently) Capistrano does not read .bashrc scripts on
login. (I have some hope that I can change that in the next release,
though.) To make sure /opt/local/bin is in the path, try putting this
in your deploy.rb:

  default_environment["PATH"] = "/opt/local/bin:/usr/bin:/usr/local/bin:..."

Be sure to set the complte path statement there, and not just the
/opt/local/bin path, because this variable replaces any existing path
that gets set by default.

- Jamis

On 8/21/07, MadPhoenix <[EMAIL PROTECTED]> wrote:
>
> Not sure if I made that clear above.  When logged in as admin, 'which
> ruby' reports /opt/local/bin/ruby
>
> On Aug 21, 3:14 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> > What does "which ruby" report when you are logged in as "admin"?
> >
> > - Jamis
> >
> > On 8/21/07, MadPhoenix <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > The shebang line is #!/usr/bin/env ruby
> >
> > > Yes, this is a MacOS 10.4 Server box, so there is the default install
> > > of ruby, as well as the MacPorts version of ruby.
> >
> > > 'which ruby' reports the correct version, /opt/local/bin/ruby
> >
> > > Thanks!
> >
> > > On Aug 21, 2:59 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> > > > What is the shebang line for script/process/reaper? Do you have
> > > > multiple ruby versions installed on the server, perchance?
> >
> > > > - Jamis
> >
> > > > On 8/21/07, MadPhoenix <[EMAIL PROTECTED]> wrote:
> >
> > > > > It loads correctly.
> >
> > > > > On Aug 21, 12:38 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> > > > > > If you log into the server, cd to the current path for your
> > > > > > application, and do "script/console production", what happens?
> >
> > > > > > - Jamis
> >
> > > > > > On 8/21/07, MadPhoenix <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > Hello,
> > > > > > >   Once my application is cold deployed, I am unable to stop or 
> > > > > > > restart
> > > > > > > the server successfully from cap.  When I execute cap deploy:cold 
> > > > > > > and
> > > > > > > subsequently cap deploy:stop, I get the following output:
> >
> > > > > > >  * executing `deploy:stop'
> > > > > > >   * executing "sudo -u admin /var/rails/hdlogger/current/script/
> > > > > > > process/reaper -a kill -r dispatch.spawner.pid"
> > > > > > >     servers: ["madphoenix.doit.wisc.edu"]
> > > > > > >     [madphoenix.doit.wisc.edu] executing command
> > > > > > >  ** [out :: madphoenix.doit.wisc.edu] /var/rails/hdlogger/current/
> > > > > > > script/process/../../config/boot.rb:18:in `require'
> > > > > > >  ** [out :: madphoenix.doit.wisc.edu] :
> > > > > > >  ** [out :: madphoenix.doit.wisc.edu] No such file to load -- 
> > > > > > > rubygems
> > > > > > > (LoadError)
> > > > > > >  ** [out :: madphoenix.doit.wisc.edu] from 
> > > > > > > /var/rails/hdlogger/current/
> > > > > > > script/process/../../config/boot.rb:18
> > > > > > >  ** [out :: madphoenix.doit.wisc.edu] from 
> > > > > > > /var/rails/hdlogger/current/
> > > > > > > script/process/reaper:2:in `require'
> > > > > > >  ** [out :: madphoenix.doit.wisc.edu] from 
> > > > > > > /var/rails/hdlogger/current/
> > > > > > > script/process/reaper:2
> > > > > > >     command finished
> > > > > > > command "sudo -u admin /var/rails/hdlogger/current/script/process/
> > > > > > > reaper -a kill -r dispatch.spawner.pid" failed on
> > > > > > > madphoenix.doit.wisc.edu
> >
> > > > > > > Which is perplexing because I shouldn't have gotten this far 
> > > > > > > without
> > > > > > > rubygems :)
> >
> > > > > > > My spin script is simply:
> > > > > > > mongrel_rails cluster::start -C <absolute path to config file>
> >
> > > > > > > So do I need to override the deploy:stop task in my deploy.rb to
> > > > > > > execute the opposite, or possibly write a "stop" bash script in 
> > > > > > > the
> > > > > > > scripts directory?
> >
> > > > > > > Conversely, is writing an executable bash script called "spin" 
> > > > > > > still
> > > > > > > the preferred methodology, or can I just override a task in 
> > > > > > > deploy.rb
> > > > > > > to run the same command from Cap?
> >
> > > > > > > Thanks!
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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