Use a different setParameters.xml file?

So, I have my deployment working on the assembly, and I configured my assembly to create the deployment package and run the package on the target server. Excellent. Now, however, the application is expanding, and I need to have different configurations on the machine (account names, etc.),

Is it possible to specify the file name "setParameters.xml", for example, "Server1.SetParameters.xml" or the like?

I have copying files through SetParameters.xml before each deployment, but now it seems elegant, and if the file is locked for any reason, it will set the wrong settings on the wrong server.

+6
source share
1 answer

Since you are using the deploy.cmd file created by WPP, the easiest choice is to set %_DeploySetParametersFile% to the full path to your setParmeters file before you deploy the script.

 SET _DeploySetParametersFile=c:\full\path\to\setParmaeters.xml call Website.deploy.cmd 

Alternatively, if you want to use msdeploy directly, you can specify -setParamFile:c:\full\path\to\setParmaeters.xml . For more information, see Configuring Website Deployment .

+11
source

Source: https://habr.com/ru/post/926933/


All Articles