我正在尝试使用 Travis 构建和部署 NodeJs + Python 应用程序。
这大约是文件夹结构(所有内容都属于同一个存储库)
main/
├── angular2-client/
│ ├── dist/
│ ├── node_modules/
│ └── ...
├── django-server/
│ ├── server/
│ ├── manage.py
│ └── ...
├── .travis.yml
└── requirements.txt
这是.travis.yml
file
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
特拉维斯抛出错误**FIREBASE WARNING: Exception was thrown by user callback. TypeError: this.stream.clearLine is not a function**
并且部署到 Firebase 失败。
我在 Heroku 部署方面也遇到了问题,但我稍后会解决这个问题。
关于如何解决它有任何提示吗?
Thanks
刚刚遇到了同样的问题,似乎某些进度条出现了一些问题。尝试在非交互模式下禁用它:
after_success:
- firebase deploy --token $FIREBASE_TOKEN --non-interactive
它解决了我的问题,希望有帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)