How to deploy compiled elements Azure Web App with Appveyor?

0 votes
I'm deploying a Web App into Azure with Appveyor, but all componentes is compiled with grunt, build and deploy is succesfuly, the problem is the bower_components folder and generated files and folders by grunt not deployed.

My code:

e\bower.json

  - Sigma.Website\node_modules -> Sigma.Website\package.json

install:

  - npm install -g grunt-cli  1> nul

before_build:

  - ps: .\CreateBuildTxt.ps1  

  - nuget restore

  - cmd: |

          cd Sigma.Website

          npm install

          grunt

          cd ..

build:

  publish_wap: true

#Deployment configuration

deploy:

- provider: WebDeploy

  server: https://sigma.scm.azurewebsites.net:443/msdeploy.axd?site=sigma

  website: sigma

  username: $sigma

  password:

    secure: xxxxxx

  ntlm: false

  remove_files: false

  app_offline: false

  artifact: Sigma.Website

  on:

    branch: master

notifications:

  - provider: Slack

    incoming_webhook: xxxx

    channel: '#sigma-dev'

    on_build_success: true

    on_build_failure: true
Jul 12, 2018 in DevOps on Cloud by Nilesh
• 6,880 points
38 views

1 answer to this question.

0 votes
Add the following BeforeBuild target to Web Application's .csproj (or .vbproj):

<Target Name="BeforeBuild">

  <ItemGroup>

    <Content Include="bower_components\**\*.*" />

  </ItemGroup>

</Target>
answered Jul 12, 2018 by Kalgi
• 2,620 points

Related Questions In DevOps on Cloud

0 votes
1 answer
0 votes
1 answer
+2 votes
3 answers

How do I deploy Scala PlayFramework Project to IBM Bluemix

It seems that they are more than ...READ MORE

answered Oct 18, 2018 in DevOps on Cloud by lina
• 8,110 points
123 views
0 votes
1 answer

how to safely deploy npm install without it causing inconsistencies?

The recent versions on npm generates a ...READ MORE

answered Apr 11, 2018 in DevOps on Cloud by DareDev
• 6,810 points
69 views
0 votes
1 answer

How to manage Application version for VM&#39;s in Azure Autoscaling group

First of all, You have to launch ...READ MORE

answered Apr 23, 2018 in DevOps on Cloud by shubham
• 6,890 points
78 views
0 votes
1 answer

How to control development/prod/staging application settings using azure functions?

You should use a build-release system like ...READ MORE

answered May 10, 2018 in DevOps on Cloud by ajs3033
• 7,280 points
317 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
213 views
0 votes
1 answer