Azure를 사용하여 Node.js 웹 애플리케이션을 배포하고 있습니다. Github를 배포 저장소로 연결하고 Jay Harris의 웹 페이지 http://www.cptloadtest.com/2013/12/03/Git-And-Grunt-Deploy-To-에 언급 된대로 deploy.sh를 설정했습니다 . Windows-Azure.aspx
내 앱은 bower에 의존하지만 배포를 시도하면 bower 실패 오류가 발생합니다. 다음은 Azure 로그의 출력입니다.
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/amdefine
C:\DWASFiles\Sites\videogelpub\AppData\npm\bower -> C:\DWASFiles\Sites\videogelpub\AppData\npm\node_modules\bower\bin\bower
[email protected] C:\DWASFiles\Sites\videogelpub\AppData\npm\node_modules\bower
├── [email protected]
├── [email protected]
error: could not lock config file d:/home/.gitconfig: Permission denied
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
bower angular#1.2.11 not-cached git://github.com/angular/bower-angular.git#1.2.11
bower angular#1.2.11 resolve git://github.com/angular/bower-angular.git#1.2.11
bower json3#~3.2.6 not-cached git://github.com/bestiejs/json3.git#~3.2.6
bower json3#~3.2.6 resolve git://github.com/bestiejs/json3.git#~3.2.6
bower es5-shim#~2.1.0 not-cached git://github.com/es-shims/es5-shim.git#~2.1.0
bower es5-shim#~2.1.0 resolve git://github.com/es-shims/es5-shim.git#~2.1.0
bower jquery#~1.11.0 not-cached git://github.com/jquery/jquery.git#~1.11.0
bower jquery#~1.11.0 resolve git://github.com/jquery/jquery.git#~1.11.0
bower angular-cookies#1.2.11 not-cached git://github.com/angular/bower-angular-cookies.git#1.2.11
bower angular-cookies#1.2.11 resolve git://github.com/angular/bower-angular-cookies.git#1.2.11
bower angular-route#1.2.11 not-cached git://github.com/angular/bower-angular-route.git#1.2.11
bower angular-route#1.2.11 resolve git://github.com/angular/bower-angular-route.git#1.2.11
bower querystring#~3.24.10 not-cached git://github.com/anodynos/node2web_querystring.git#~3.24.10
bower querystring#~3.24.10 resolve git://github.com/anodynos/node2web_querystring.git#~3.24.10
bower bootstrap#~3.0.3 cached git://github.com/twbs/bootstrap.git#3.0.3
bower bootstrap#~3.0.3 validate 3.0.3 against git://github.com/twbs/bootstrap.git#~3.0.3
bower angular-resource#1.2.11 cached git://github.com/angular/bower-angular-resource.git#1.2.11
bower angular-resource#1.2.11 validate 1.2.11 against git://github.com/angular/bower-angular-resource.git#1.2.11
bower angular-sanitize#1.2.11 cached git://github.com/angular/bower-angular-sanitize.git#1.2.11
bower angular-sanitize#1.2.11 validate 1.2.11 against git://github.com/angular/bower-angular-sanitize.git#1.2.11
bower underscore#~1.6.0 cached git://github.com/jashkenas/underscore.git#1.6.0
bower underscore#~1.6.0 validate 1.6.0 against git://github.com/jashkenas/underscore.git#~1.6.0
bower angular-mocks#1.2.11 cached git://github.com/angular/bower-angular-mocks.git#1.2.11
bower angular-mocks#1.2.11 validate 1.2.11 against git://github.com/angular/bower-angular-mocks.git#1.2.11
bower angular-scenario#1.2.11 cached git://github.com/angular/bower-angular-scenario.git#1.2.11
bower angular-scenario#1.2.11 validate 1.2.11 against git://github.com/angular/bower-angular-scenario.git#1.2.11
bower json3#~3.2.6 download https://github.com/bestiejs/json3/archive/v3.2.6.tar.gz
bower angular-cookies#1.2.11 download https://github.com/angular/bower-angular-cookies/archive/v1.2.11.tar.gz
bower angular-route#1.2.11 download https://github.com/angular/bower-angular-route/archive/v1.2.11.tar.gz
bower angular#1.2.11 download https://github.com/angular/bower-angular/archive/v1.2.11.tar.gz
bower angular-cookies#1.2.11 extract archive.tar.gz
bower angular-cookies#1.2.11 resolved git://github.com/angular/bower-angular-cookies.git#1.2.11
bower angular-route#1.2.11 extract archive.tar.gz
bower angular-route#1.2.11 resolved git://github.com/angular/bower-angular-route.git#1.2.11
bower angular#1.2.11 extract archive.tar.gz
bower angular#1.2.11 resolved git://github.com/angular/bower-angular.git#1.2.11
bower json3#~3.2.6 progress received 3.0MB of 4.9MB downloaded, 60%
bower json3#~3.2.6 progress received 4.0MB of 4.9MB downloaded, 82%
bower json3#~3.2.6 extract archive.tar.gz
An error has occurred during web site deployment.
bower failed
이것을 알아낼 수 없습니다.
이 문제를 직접 처리하고 온라인에서 리소스를 찾지 못한 후 질문을 찾았습니다. 링크에 나열한 것과 매우 유사한 배포 파일 및 스크립트를 사용했지만 나열한 것과 비슷한 오류가 발생했습니다.
Azure 로그에 모든 것이 bower.json 파일에서 설치되고 있음을 보여주고 끝에 오류 만 표시되기 때문에 혼란 스럽습니다.
우선 npm (node_modules 폴더)에 bower가 있는지 확인하십시오. 당신처럼 보입니다.
둘째, bower install
명령 줄에서 실행합니다. 제 경우에는 모든 것을 설치했지만 결국 다음과 같은 메시지를주었습니다.
나는 Angular의 최신 버전이고 나머지와 역 호환이 가능하기 때문에 옵션 3을 선택했습니다. 쾅 (!)은이를 bower.json 폴더에 추가합니다. 커밋하고 내 리포지토리에 푸시하고 Azure에 다시 배포했습니다 ... 이번에는 오류없이 배포되었습니다!
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다