How will I deploy compiled elements Azure Web App with Appveyor

0 votes

I have been trying to deploy a Web App into Azure with Appveyor, but all componentes is compiled with grunt, build is succesfuly and deploy also, the problem is not deployed bower_components folder and generated files and folders by grunt.

I don't know if I have miss any code on my appveyor.yml?

shallow_clone: true
# version format
version: 1.1.{build}
# Fix line endings in Windows. (runs before repo cloning)
init:
  - git config --global core.autocrlf true

cache:
  - packages -> **\packages.config
  - Sigma.Website\bower_components -> Sigma.Website\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


Can anyone help me with this?

Thanks

Jul 7, 2018 in DevOps on Cloud by Atul
• 10,240 points
509 views

1 answer to this question.

0 votes

Try adding this to your file before build target to Web Application's .csproj (or .vbproj):

<Target Name="BeforeBuild">
  <ItemGroup>
    <Content Include="bower_components\**\*.*"/>
  </ItemGroup>
</Target>
answered Jul 7, 2018 by shubham
• 7,340 points

Related Questions In DevOps on Cloud

0 votes
1 answer

How to deploy compiled elements Azure Web App with Appveyor?

Add the following BeforeBuild target to Web ...READ MORE

answered Jul 12, 2018 in DevOps on Cloud by Kalgi
• 2,680 points
631 views
0 votes
1 answer
0 votes
1 answer

How can I remove a port from url for node app using nginx

If you run your node server on ...READ MORE

answered Apr 10, 2018 in DevOps on Cloud by ajs3033
• 7,300 points
3,661 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
3,503 views
+2 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
885 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
773 views
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