This repository was archived by the owner on Aug 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
continuous deployment
mkasztelnik edited this page Nov 27, 2014
·
1 revision
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 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 withmaster
) - Push
stable
branch into production:
git push vph-prod stable
git checkout stable
git merge master
git push origin stable
git push vph-prod stable