tag:help.appveyor.com,2012-11-13:/discussions/questions/1407-environment-deployment-orderAppVeyor: Discussion 2015-07-25T08:52:50Ztag:help.appveyor.com,2012-11-13:Comment/372226882015-06-25T22:39:53Z2015-06-25T22:39:53ZEnvironment deployment order?<div><p>I see. Actually, the order is based on artifacts collection. It
goes through artifacts, takes their "deployment name" and then look
for settings using deployment name as a prefix.</p>
<p>I'm going to add a new issue to support that scenario.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/372226882015-06-26T05:59:03Z2015-06-26T05:59:03ZEnvironment deployment order?<div><p>As a workaround, I tried prefixing the artifact name with '1.'
but this didn't help. Looks like it's going off the artifact's file
name.</p>
<p>Another option could be to set up a separate Environment for the
DB, and attempt to deploy it separately before the others, but this
is quite ugly. And since it's an async deployment I'm not sure it
would work as I expect.</p>
<p>Is there any chance you are able to hotifx this for us?</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/372226882015-06-26T06:03:03Z2015-06-26T06:03:03ZEnvironment deployment order?<div><p>Yes, I'll try to provide you some solution tomorrow.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/372226882015-06-26T06:10:27Z2015-06-26T06:10:27ZEnvironment deployment order?<div><p>Thanks Feodor!</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/372226882015-06-27T00:58:06Z2015-06-27T00:58:06ZEnvironment deployment order?<div><p>Here you are: <a href="http://www.appveyor.com/downloads/3.0.6/AppveyorDeploymentAgent.msi">
http://www.appveyor.com/downloads/3.0.6/AppveyorDeploymentAgent.msi</a></p>
<p>I did a better solution rather than relying on settings order.
Every app can have <code>deploy_order</code> setting which is a
number. Artifacts are being sorted in ascending order and
<code>deploy_order</code> is <code>0</code> if not specified. For
example:</p>
<pre>
<code>artifact1.deploy_website: true
artifact1.site_name: MySite
artifact1.deploy_order: 1
artifact2.deploy_database: true
artifact2.deploy_order: 2</code>
</pre>
<p>Let me know how that worked and I'll make this release
public.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/372226882015-06-29T08:43:45Z2015-06-29T08:43:45ZEnvironment deployment order?<div><p>Heya Feodor!</p>
<p>Looks to be working a treat, thanks very much for the fast
turnaround!</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/372226882015-06-30T02:48:50Z2015-06-30T02:48:50ZEnvironment deployment order?<div><p>Great, will make it public tomorrow.</p></div>Feodor Fitsner