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