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.

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

<<attachment: manuelva.vcf>>

Reply via email to