Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

travis deployment script for django applications to heroku

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"
Source by www.calazan.com #
 
PREVIOUS NEXT
Tagged: #travis #deployment #script #django #applications #heroku
ADD COMMENT
Topic
Name
3+5 =