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
• 7,060 points
872 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,680 points

Related Questions In DevOps on Cloud

0 votes
1 answer
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,220 points
1,226 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,890 points
982 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 24, 2018 in DevOps on Cloud by shubham
• 7,340 points
1,154 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP