tag:help.appveyor.com,2012-11-13:/discussions/suggestions/990-best-way-to-package-node_modules-and-push-to-azureAppVeyor: Discussion 2018-08-25T02:05:28Ztag:help.appveyor.com,2012-11-13:Comment/395370102016-04-01T20:59:05Z2016-04-01T20:59:05ZBest way to package node_modules and push to azure<div><p>I would use Web Deploy instead of FTP. It's much faster and
efficient.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/395370102016-04-01T21:08:26Z2016-04-01T21:08:27ZBest way to package node_modules and push to azure<div><p>Hey Feodor,</p>
<p>Awesome service bro by the way, 6 minutes later :)</p>
<p>I was told by a colleague that web deploy was only for VS
projects, is that incorrect?</p>
<p>B</p></div>Ben Coopertag:help.appveyor.com,2012-11-13:Comment/395370102016-04-01T21:11:10Z2016-04-01T21:11:10ZBest way to package node_modules and push to azure<div><p>Not necessary. You are probably already producing zip artifact
at the moment so it's good to go for Web Deploy provider: <a href="http://www.appveyor.com/docs/deployment/web-deploy#azure-web-sites">
http://www.appveyor.com/docs/deployment/web-deploy#azure-web-sites</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/395370102016-04-01T21:20:06Z2016-04-01T21:20:07ZBest way to package node_modules and push to azure<div><p>I will give it a try, thanks Feodor :)</p>
<p>B</p></div>Ben Coopertag:help.appveyor.com,2012-11-13:Comment/395370102016-04-01T21:26:53Z2016-04-01T21:26:54ZBest way to package node_modules and push to azure<div><p>Quick one, a lot of the time up to 20 minutes is spent creating
the artifact, even though I just want to send the full repo to
azure. Any recommendations on how to quicken this process up? It's
not a large project, but it seems packaging the node_modules takes
a hefty chunk of time.</p>
<p>B</p></div>Ben Coopertag:help.appveyor.com,2012-11-13:Comment/395370102016-04-01T23:17:47Z2016-04-01T23:17:47ZBest way to package node_modules and push to azure<div><p>I think you can use <code>msdeploy.exe</code> command line to
sync folder to Azure website. To sync <strong>entire</strong> build
folder to website add this to your <code>appveyor.yml</code>:</p>
<pre>
<code>environment:
website_name: <your-azure-website>
website_password: <your-azure-website-password>
deploy_script:
- '"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:contentPath=''%appveyor_build_folder%'' -dest:contentPath=''%website_name%'',ComputerName=''https://%website_name%.scm.azurewebsites.net/msdeploy.axd?site=%website_name%'',UserName=''$%website_name%'',Password=''%website_password%'',IncludeAcls=''False'',AuthType=''Basic'' -verb:sync -retryAttempts:2'</code>
</pre></div>Feodor Fitsner