📌  相关文章
📜  用于 django 应用程序到 heroku 的 travis 部署脚本 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:10.392000             🧑  作者: Mango

代码示例1
language: python
deploy:
  provider: heroku
  buildpack: python
  api_key:
    secure: very_long_encrypted_token
  strategy: git
  app: glucosetracker-demo
  on:
    repo: jcalazan/glucose-tracker
  run:
    - "python glucosetracker/manage.py syncdb --noinput --settings=settings.heroku"
    - "python glucosetracker/manage.py migrate --all --settings=settings.heroku"
    - "python glucosetracker/manage.py load_random_glucose_data jsmith --settings=settings.heroku"
    - restart
script: "coverage run --source=. glucosetracker/manage.py test -v 2"