... Is not valid; it was meant as a continuation ie, substitute your real information here.
Sed commands should look something like this sed s/COLOR/CLR/g /path/to/src > /path/to/dest Or sed -i s/COLOR/CLR/g /path/to/file/for/update Or cat /path/to/src | sed s/COLOR/CLR/g | sed s/THIS/THAT/g > /path/to/dest Without checking the man page appending g after the pattern makes the search and replace global; otherwise I would expect only the first occurrence to change man sed For more info On Aug 12, 2011, at 5:57 AM, sawan talreja <[email protected]> wrote: > 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 -- * 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
