Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

continuous deployment

mkasztelnik edited this page Nov 27, 2014 · 1 revision

Continuous deployment

Development environment:

Development environment is located at vph-dev.cyfronet.pl. To push code into development you need to have following remote defined:

git remote add vph-dev [email protected]:current

To push code there use following command:

git push vph-dev master

As agreed master branch is used for development. It should contain code with will work also for other developers. If you have WIP code (e.g. it brakes existing platform features, rspec failures) than please create separate branch and merge it into master when it is ready.

Production (vph.cyfronet.pl) environment

Production environment is located at vph.cyfronet.pl. To push code into production you need to have following remote defined:

git remote add vph-prod [email protected]:current

To push code into production perform following steps:

  • Check if all rspec tests passed
  • Deploy code you want to deploy into testing environment and check if new added features work as expected
  • Switch stable branch into sha1 with code you want to deploy into production (most probably you want to merge it with master)
  • Push stable branch into production:
git push vph-prod stable

Example

git checkout stable
git merge master
git push origin stable
git push vph-prod stable