tag:help.appveyor.com,2012-11-13:/discussions/questions/11650-full-content-synchronization-when-deployment-provider-is-set-to-environmentAppVeyor: Discussion 2018-10-19T08:18:32Ztag:help.appveyor.com,2012-11-13:Comment/438544572017-10-24T21:29:18Z2017-10-24T21:29:18ZFull content synchronization when deployment provider is set to Environment<div><p>Hi</p>
<p>We are using a named environment for deployment <code>- provider: Environment</code>.<br>
The <code>- provider: WebDeploy</code> has the option <code>remove_files: true</code>.<br>
Is there a setting to accomplished this when the provider is set to <code>- provider: Environment</code>? (How can we achieve full content synchronization?)</p>
<p>Thanks,<br>
Joel</p></div>joel.mccunetag:help.appveyor.com,2012-11-13:Comment/438544572017-10-24T21:39:25Z2017-10-24T21:39:25ZFull content synchronization when deployment provider is set to Environment<div><p>If you use Environment deployment, all provider-specific settings should be configured inside Environment UI. For WebDeploy this means <code>Remove additional files at destination</code> UI setting.</p>
<p>YAML configuration for provider setting works only if you use <strong>inline</strong> (not <strong>Environment</strong>) deployment. For <strong>Environment</strong> deployment you have at minimum only specify environment <code>name</code> in YAML. Also you can specify <a href="https://www.appveyor.com/docs/deployment/#conditional-deployment">deployment conditions</a> and pass <a href="https://www.appveyor.com/docs/deployment/environment/#overriding-environment-variables">environment variables</a>, but again provider-specific settings should be inside specific Environment UI.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/438544572017-10-24T22:05:02Z2017-10-24T22:05:02ZFull content synchronization when deployment provider is set to Environment<div><p>Thanks Ilya</p></div>joel.mccune