Continuous Deployment Travis → Heroku

I use Travis to test CoinsManager every time a commit is placed upstream.

And so far I regularly post on Heroku with the following steps:

  • update application settings on heroku
  • generate css and commit it
  • click only the code in the app / to heroku directory
  • remove local css commit

What does it mean:

$ heroku --app coinsmanager-beta config:add METEOR_SETTINGS="`cat app/settings.json`"
$ cd app/client/compass && compass compile && cd -
$ for file in `find . -name "*css"`; do git add -f $file; done; git ci -am "heroku style"
$ git push heroku-beta `git subtree split --prefix app develop`:master --force
$ git reset --soft HEAD~1 && git reset HEAD .

Now I want to add Continuous Deployment and update my beta every time a commit is pushed upstream of the development branch after the tests pass.

Please read my .travis.ymlfile here .

deploy.run, , , , wget, compass, meteor .., .

after_success, , , , travis, . , after_success , , , , , heroku, / .

, ?

+4
1

Travis-CI Heroku , , , . API Heroku travis, HEROKU_API_KEY = 'Your Key', auth.

: http://www.parsed.io/yeoman-travis-ci-heroku/

, yml, .

+1

Source: https://habr.com/ru/post/1529140/


All Articles