For the archives, the below task works perfectly.
I tried this very same technique first in my trials, but was using the
wrong procedure to copy files, and wasn't getting the proper
substituion for "$CAPISTRANO:HOST$".
For the record, the following doesn't work in this case with
"$CAPISTRANO:HOST$". From Jamis' explanation this now makes sense as
to why
DOESNT_WORK: put(File.read("#{some_path}/$CAPISTRANO:HOST$.yml"),
#{some_path}/mongrel_cluster.yml", :mode => 0777)
WORKS: run "cp #{some_path}/$CAPISTRANO:HOST$.yml #{some_path}/
mongrel_cluster.yml"
Thanks for the help.
On Jun 14, 6:56 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
> task :copy_correct_mongrel_config do
> run "cp #{release_path}/config/mongrel/$CAPISTRANO:HOST$.yml #
> {release_path}/config/mongrel_cluster.yml"
> end
>
> after "deploy:update_code", :copy_correct_mongrel_config
>
> The above command will execute on each host, copying the mongrel
> config for that host to the general config/mongrel_cluster.yml file.
>
> Hope that helps,
> Jamis
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---