首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Travis-ci在成功构建后不要更新我的防火墙托管网站,我使用了角(2-4)。

Travis-ci在成功构建后不要更新我的防火墙托管网站,我使用了角(2-4)。
EN

Stack Overflow用户
提问于 2017-05-16 22:24:14
回答 1查看 177关注 0票数 0

我在Travis上添加了FIREBASE_TOKEN,我是从firebase登录名:ci生成的

我只对特拉维斯有这个错误

.travis.yml

代码语言:javascript
复制
#.travis.yml

language: node_js
node_js:
  - "7"

branches:
  only:
    - master

before_script:
  - npm install -g firebase-tools
  - npm install -g @angular/cli

script:
  - ng build --prod

after_success:
  - firebase deploy --token $FIREBASE_TOKEN

notifications:
  email:
    on_failure: change
    on_success: change

我也不确定,但这是我的git忽略文件从角CLI

/dist文件夹不会被推到GitHub回购上,因为角CLI默认的gitignore,我可以取消对GitHub忽略文件的注释吗??

.gitignore

代码语言:javascript
复制
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

# System Files
.DS_Store
Thumbs.db
EN

回答 1

Stack Overflow用户

发布于 2017-05-16 23:13:50

我忘记在.travis.yml中添加此代码,因为我在项目中使用了别名

代码语言:javascript
复制
after_success:
  - firebase use --add my-alias
  - firebase deploy --token $FIREBASE_TOKEN
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44012576

复制
相关文章

相似问题

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