forked from koala-framework/koala-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Internal Git
Ben-Ho edited this page Mar 27, 2013
·
34 revisions
cd ~/www
vps clone $WEBNAME
nano webname/application/config.db.ini #set username and password - only for < 3.0 Webs
# when required branch-change:
# for < 3.0:
cat $WEBNAME/application/vps_branch # shows required branch
cd ~/www/vps
git checkout $VERSION #example: git checkout 2.1
# for >= 3.0
cat $WEBNAME/vkwf_branch # shows required branch
cd ~/www/kwf
git checkout $VERSION #example: git checkout 3.0
cd ~/www/vkwf
git checkout $VERSION #example: git checkout 3.0
cd ~/www/$WEBNAME
vps import
vps create-users
File -> new -> PHP Projekt(1)
Project name -> webname
Contents -> Create project at existing location (from existing source) -> take your vps cloned website (e.g. Z:\webname)
-> Next
-> Projects (2nd tab) -> Add... -> Check "Vps" *or* "Kwf"+ "Vkwf"
# for web
git checkout -b production origin/production
# for kwf
git checkout -b production/webname origin/production/webname
cd ~/www/template
vps create-from-template --name="Pretty Web Name" #optional: --id="webid"
cd ../webid
(master branch)
git add ....
git commit
git push
vps export --server=test
vps copy-to-test
vps import
(master branch)
git add ....
git commit
git push
vps export --server=test
verify changes on test server, if ok:
git log #find commit id
git checkout production
git pull --rebase
git cherry-pick $commitid
git push
vps export --server=production
git checkout production
git add ....
git commit
git push
vps export --server=production
git checkout master
git cherry-pick production #picks only the last commit, production^ for second last
git push
(master branch)
git add ....
git commit
git push
vps export --server=test
verify changes on test server, if ok:
vps go-online
git format-patch HEAD~1 #creates patch file for last 1 commit
mv 0001-* ../otherrepo #move patch file to where you want to apply patch
cd ../otherrepo
git am --3way 0001-*
# if patch causes conflict apply manually and fix conflict
git apply --verbose --reject $PATCHNAME
# cleanup
rm 0001-*
# push changes
git push
set server.domain and server.path in config.ini to correct values (production + test section)
vps setup-online --server=test,production
vps go-online
# 1. Source the cmakekde command
source ~/kdev
# 2. Update and compile kdevplatform in ~/kdesvn
git pull --rebase
cmakekde
# 3. Update and compile the other directories (kdevelop, kdev-php, kdev-php-docs) in ~/kdesvn
git pull --rebase
cmakekde