> If I now log into my server via ssh and do a "ps aux | grep mongrel",
> I can see that mongrel is not running.
> I am running Ubuntu 8.04 LTS and installed mongrel via apt-get install
> mongrel. I tried to run mongrel manually via "mongrel_rails start -d",
> which complains about the paths for log and pid not being correct.
What are the values in your mongrel cluster configuration?
> Could this be the problem for capistrano aswell? Do I understand
> correctly that "cap deploy:start" should start mongrel, or do I have
> to care about that aforehand?
By default Capistrano will try a spin script. What you want is
propably something like this in your configuration file:
set :mongrel_config, '/etc/mongrel/mongrel_cluster.yml'
namespace :mongrel do
[ :stop, :start, :restart ].each do |t|
desc "#{t.to_s.capitalize} mongrel"
task t, :roles => :app, :except => { :no_release => true } do
as = fetch(:runner, "app")
invoke_command "mongrel_rails cluster::#{t.to_s} -C
#{mongrel_config} --clean", :via => run_method, :as => as
end
end
end
Jonathan
--
Jonathan Weiss
http://blog.innerewut.de
http://twitter.com/jweiss
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---