2016-07-07 4 views
0

Appveyor를 사용하여 Azure에 웹 응용 프로그램을 배포하고 있지만 모든 구성 요소는 툴툴 거리며 컴파일되고 빌드가 성공적으로 배포되며 문제는 bower_components 폴더와 툴툴 거리는 생성 된 파일 및 폴더로 배포되지 않습니다.컴파일 된 요소를 배포하는 방법 Appureor를 사용하여 Azure Web App를 만드시겠습니까?

내 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 

답변

0

웹 응용 프로그램의 .csproj (또는 .vbproj)에 다음 BeforeBuild 대상을 추가

<Target Name="BeforeBuild"> 
    <ItemGroup> 
    <Content Include="bower_components\**\*.*" /> 
    </ItemGroup> 
</Target>