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 6, 2018 in DevOps on Cloud by Atul
• 10,240 points
44 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 6, 2018 by shubham
• 6,890 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,620 points
38 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,280 points
589 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
70 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
216 views
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
125 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
80 views