【发布时间】:2018-05-26 06:08:18
【问题描述】:
我正在尝试将 Bitbucket 管道与 Firebase 托管集成以实现持续交付。在需要部署公用文件夹之前,一切似乎都运行良好。
这是我的“bitbucket-pipelines.yml”:
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
npm build 在哪里运行“ng build”。当我在本地机器上运行“firebase deploy..”命令时,它工作正常,因为 dist 目录在那里。但是当它由 Bitbucket Pipeline 运行时,它会抛出这个错误:
=== Deploying to MY_PROJECT...
i deploying hosting
Error: Specified public directory does not exist, can't deploy hosting
bitbucket 管道似乎没有生成 firebase deploy 试图找到的 dist 文件夹(dist)。
【问题讨论】:
标签: node.js firebase bitbucket continuous-deployment bitbucket-pipelines