1

Firebird 호스팅과 Bitbucket 파이프 라인을 통합하여 지속적으로 전송하려고합니다. 공용 폴더를 배포해야 할 때까지 모든 것이 제대로 작동하는 것 같습니다.Bitbucket 파이프 라인 + Firebase 호스팅

여기 내 '의 bitbucket-pipelines.yml'입니다 :

NPM 빌드가 "NG 빌드를"실행
image: gabrielaraujof/angular-cli 

pipelines: 
    default: 
    - step: 
     caches: 
      - node 
     script: # Modify the commands below to build your repository. 
      - npm install 
      - npm build 
      - firebase deploy --token=$FIREBASE_TOKEN --project MT_PROJECT --only hosting --public dist 

. 내 로컬 컴퓨터에서 "firebase deploy .."명령을 실행하면 dist 디렉토리가 있기 때문에 제대로 작동합니다. 그것은의 Bitbucket 파이프 라인에 의해 실행 때 그러나이 오류가 발생합니다 :

=== Deploying to MY_PROJECT... 
i deploying hosting 
Error: Specified public directory does not exist, can't deploy hosting 

그것은 중포 기지 배포가 (DIST)을 찾기 위해 노력하는 DIST 폴더를 생성하지 않는의 bitbucket 파이프 라인처럼 보인다. 대답을 찾고있는 사람들을위한

답변

0

, 이것은 나를 위해 일한 :

image: node:7.4.0 

pipelines: 
    default: 
    - step: 
     caches: 
      - node 
     script: 
      - npm install -g @angular/cli 
      - npm install -g firebase-tools 
      - npm install 
      - ng build 
      - firebase deploy --only hosting --token "$FIREBASE_TOKEN" --public dist 
관련 문제