【发布时间】:2017-06-24 12:51:57
【问题描述】:
我正在尝试使用 Travis 构建和部署 NodeJs + Python 应用程序。
这大概是文件夹结构(所有东西都属于同一个repo)
main/
├── angular2-client/
│ ├── dist/
│ ├── node_modules/
│ └── ...
├── django-server/
│ ├── server/
│ ├── manage.py
│ └── ...
├── .travis.yml
└── requirements.txt
这是.travis.yml 文件
language: python
python:
- "3.4"
sudo: required
before_install:
- nvm install node
- npm --version
install:
- cd ./angular2-client
- npm install
- cd ..
- pip install -r requirements.txt
before_script:
- npm install -g firebase-tools
script:
- cd ./angular2-client && npm run build
after_success:
- firebase deploy --token $FIREBASE_API_TOKEN
before_deploy:
- cd ..
- cd ./django-server
deploy:
provider: heroku
api_key: $HEROKU_API_KEY
app: glacial-shore-18891
运行firebase deploy --token $FIREBASE_API_TOKEN 行后,Travis 抛出错误**FIREBASE WARNING: Exception was thrown by user callback. TypeError: this.stream.clearLine is not a function** 并且部署到 Firebase 失败。
我也遇到了 Heroku 部署的问题,但我稍后会处理。
关于如何解决它的任何提示?
谢谢
【问题讨论】:
-
从今天的版本开始,我在 Firebase + Travis 上遇到了同样的问题,而昨天这个问题不存在。