Oler,
 You can put that in your Capfile, or anything loaded by it.

- Lee

2009/3/2 oler <[email protected]>

>
> Thanks for the replies! While I was waiting for my post to be accepted
> to the mailing list, I have tried around some and succeeded in running
> mongrel manually. To do so, I have created a configfile for mongrel
> (myapp/config/mongrel_cluster.yml), which looks like this:
>
> http://pastie.org/405262
>
> I also got the mongrel_cluster gem (which is obviously something else
> than the simple mongrel thing I already hat). I then started mongrel
> pointing it to this file and that worked.
>
> > 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
>
> Where would this code go? In which configuration file? My spin script
> looks as suggested in the aforenamed tutorial:
>
> http://pastie.org/405264
>
>
>
>
>
> >
>

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