View Code? Open in Web Editor
NEW
express ci/cd example app
License: MIT License
JavaScript 84.47%
CSS 0.96%
HTML 14.57%
express-ci-cd's Introduction
Continuous Integration and Deployment with GitHub, Travis and Heroku
![Build Status](https://camo.githubusercontent.com/e825b5393e75b3adc6c6117a1302e7d31e57a1fb1c730b005da6ac28b03cd04b/68747470733a2f2f7472617669732d63692e6f72672f6d6a686561302f657870726573732d63692d63642e7376673f6272616e63683d6d6173746572)
- Create app on Heroku and set up Git remote:
heroku create
- Push to Heroku:
git push heroku master
- Add any necessary environment variables
- Create db on Heroku:
heroku addons:create heroku-postgresql:hobby-dev
- Update knexfile.js with production config
- Push to Heroku, after you commit
- Create migrations (if necessary)
- Apply Migrations:
heroku run knex migrate:latest --env=production
- Create Seeds (if necessary)
- Apply Seeds:
heroku run knex seed:run --env=production
- Restart Heroku app:
heroku restart
- Set up remote on GitHub
- Push
- Sign up (if necessary)
- Add project repo
- Do a quick sanity check - add a new test, push to Github, ensure tests run on Travis
- Install travis command line tool (if necessary) -
gem install travis
- Set up the travis.yml file -
travis setup heroku
- Re push
- Magic
express-ci-cd's People
Contributors
Stargazers
Watchers