Thanks for your help..
i added this like

before "deploy:symlink" do
run <<-CMD
sed  s/COLOR/CLR/ ...> /path
CMD
end

but when i execute cap deploy

It shows this error:-failed: "sh -c 'sed  s/COLOR/CLR/ ...> /path'" on
192.168.x.x


On Aug 12, 4:55 am, Manuel Vázquez Acosta <[email protected]> wrote:
> Sawan,
>
> I still think you can write non-capistrano-deploy file on your servers.
> I'm assuming that your servers run the same code, but, perhaps the
> configuration varies from one to another.
>
> However if your *really* must do some filtering of files after you have
> upload your code you may do something like (in your Capfile)::
>
> after "deploy:upload_code" do
>    the_file = fetch(:the_file)
>    run <<-CMD
>       cp #{last_release}/path/to/file /tmp/tmpname.tmp
>       # Do some sed magic
>       sed s/replace/string/  .... > #{last_release}/path/to/file
>    CMD
> end
>
> Then after you deploy your code, this will be executed and you may alter
> the files you like.
>
> Best regards,
> Manuel.
>
> On 08/11/2011 09:29 AM, sawan talreja wrote:
>
>
>
>
>
>
>
> > hi,
>
> > My question is before deploying php on production server it will
> > automatically change some ip addresses in files and then it will
> > create symlink..????
>
> > thanks.
>
>
>
>  manuelva.vcf
> < 1KViewDownload

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to