首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Wercker Firebase部署问题

Wercker Firebase部署问题
EN

Stack Overflow用户
提问于 2017-08-15 13:57:21
回答 1查看 93关注 0票数 0

我正在尝试通过Wercker自动部署到Firebase主机,并不断地获得此错误。

遵循本教程

https://medium.com/@pradeep1991singh/integrate-wercker-with-bitbucket-firebase-and-slack-7eb3bc38543d

堆栈跟踪

代码语言:javascript
复制
> export WERCKER_STEP_ROOT="/pipeline/script-5ea4a2c6-b11f-4972-991a-eec61b3d43af"
export WERCKER_STEP_ID="script-5ea4a2c6-b11f-4972-991a-eec61b3d43af"
export WERCKER_STEP_OWNER="wercker"
export WERCKER_STEP_NAME="script"
export WERCKER_REPORT_NUMBERS_FILE="/report/script-5ea4a2c6-b11f-4972-991a-eec61b3d43af/numbers.ini"
export WERCKER_REPORT_MESSAGE_FILE="/report/script-5ea4a2c6-b11f-4972-991a-eec61b3d43af/message.txt"
export WERCKER_REPORT_ARTIFACTS_DIR="/report/script-5ea4a2c6-b11f-4972-991a-eec61b3d43af/artifacts"
source "/pipeline/script-5ea4a2c6-b11f-4972-991a-eec61b3d43af/run.sh" < /dev/null
[2017-08-15T13:38:45.071Z] ----------------------------------------------------------------------
[2017-08-15T13:38:45.076Z] Command:       /usr/local/bin/node /usr/local/bin/firebase deploy --project --token --debug
[2017-08-15T13:38:45.076Z] CLI Version:   3.9.2
[2017-08-15T13:38:45.076Z] Platform:      linux
[2017-08-15T13:38:45.076Z] Node Version:  v7.10.1
[2017-08-15T13:38:45.077Z] Time:          Tue Aug 15 2017 13:38:45 GMT+0000 (UTC)
[2017-08-15T13:38:45.077Z] ----------------------------------------------------------------------
[2017-08-15T13:38:45.091Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2017-08-15T13:38:45.091Z] > no authorization credentials were supplied or found

⚠  Your CLI authentication needs to be updated to take advantage of new features.
⚠  Please run firebase login --reauth
[2017-08-15T13:38:45.093Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
[2017-08-15T13:38:45.093Z] > no authorization credentials were supplied or found
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-08-16 03:00:09

这个问题与Wercker.yml文件有关。该步骤没有正确定义,环境变量似乎没有被正确读取。

缩小问题范围的步骤

  1. 在本地注销firebase,然后尝试执行一个firebase列表--应该会出现错误
  2. 尝试相同的--令牌传递令牌,如果令牌是有效的,将得到所有有效项目的列表。
  3. 获取有效的项目名称和令牌,然后用yml对其进行硬编码,并尝试一次,以确保构建正确执行
  4. 最后,当一切正常运行时,将其公开为受保护的变量,一切都像魅力一样工作!
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45694407

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档