I m deploying files and the related metadata(EA) from a single source to a single target.I want to deploy these to multiple targets from a single source by filtering based on the path of the files (/generated and /assets).I m using the deployment approach in which the EAs of the deployed files get deployed to the DB using the database.xml file present on the Target.PFA the deployemnt script definition where I m deploying to a single target (i.e.WebServer). I want to deploy the assets to WebServer and Generated files to AppServer.How can I apply filters in this definition, as the 'targetRules' element is present in the source.Can there be multiple 'targetRules' in the same source?Can anyone please provide some help.
Is it not possible to apply filter on the targets by using a single Filelist?
I forgot to add one more point, I m getting an error in the script if I use more then one 'dbLoader' element in the deployemnt script...It says 'dbLoader cannot be used in more than one definition'.
You have mentioned that "If you have different definitions (one for Webserver, one for Appserver) then presumably you only need the dbLoader associated with one (the appserver) definition."How will DD work for the WebServer(as ther is no dbLoader element present in that definition) as I need to do a DataDeploy for the content being deployed to Webserver as well as Appserver to a single Database present in the WebServer.The Webserver and Appserver are two different machines.
Answer to your questions is as follows:(So you're saying that for a set of N-files one subset-A files get sent to WebServer and another subset-B get sent to AppServer - right so far?) -RIGHT(And that there is data associated with both subsets that need to be sent to a single database server - yes? ) -YESI m fine with using two Definitions for this deployment but the problem I m facing is as follows:" dbLoader cannot be used in more than one definition "...
Yeah you are not allowed to have multiple dbLoaders. With that said, probabl your best bet may be to have 2 separate set of deployments -- one for OD and one for DD.