When using the mongrel-cluster stuff, you'll need to override the deploy:restart (and probably deploy:start and deploy:stop) tasks. The default implementations use the script/process/reaper script, which doesn't fit with the default assumptions of mongrel-cluster. You might try searching this mailing list's archives--I know others have posted implementations for capistrano tasks that will manipulate the mongrel cluster.

- Jamis

On May 26, 2008, at 11:03 PM, bdeveloper wrote:


I am new to Capistrano and am having trouble getting all the recipes
to work. cap deploy:cold seems to work fine. cap deploy:stop and cap
deploy:restart give the following error.

   [127.0.0.1] executing command
*** [err :: 127.0.0.1] Couldn't find any pid file in '/Library/Rails/
bhome/current/tmp/pids' matching 'dispatch.[0-9]*.pid'
*** [err :: 127.0.0.1] (also looked for processes matching "/Library/
Rails/bhome/current/public/dispatch.fcgi")
   command finished

What do I need to do to fix this? I haven't been able to find anything
in the documentation. Here are the contents my configuration files.
Please help!!!

deploy.rb
-------------
set :application, "bhome"
set :repository,  "file:///Users/brent/svn_repositories/bhome/trunk"
set :deploy_to, "/Library/Rails/#{application}"
set :runner, "brent"
set :mongrel_conf, "#{deploy_to}/current/config/mongrel_cluster.yml"

role :app, "127.0.0.1"
role :web, "127.0.0.1"
role :db,  "127.0.0.1", :primary => true


mongrel_cluster.yml
-----------------------------
cwd: /Library/Rails/bhome/current
log_file: log/mongrel.log
port: "8000"
environment: production
address: 127.0.0.1
pid_file: tmp/pids/mongrel.pid
servers: 2


spin
------
# File: script/spin
/usr/bin/mongrel_rails cluster::start -C config/mongrel_cluster.yml

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


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to