Beberapa hari yang lalu nemuin bug yg bikin web app crash. Ga tau kenapa bug ini ga ada sebelumnya. Padahal sebelum bug ini ketauan ga ada update yg di-pull ke production. Hari ini nemuin bug lagi … beuh. Gini deh kalo kerja sendiri ga ada yg bantuin QA.
Untuk bikin hotfix, saya bikin dulu git branch.
|
|
mac$ git checkout -b hotfix_stupid_bug |
Benerin bug di branch ini, terus tes lokal. Push ke git repo biar bisa dites di staging.
Login ke staging. Pull terus aktifin branch.
|
|
staging$ git pull staging$ git branch --track hotfix_stupid_bug origin/hotfix_stupid_bug staging$ git checkout hotfix_stupid_bug |
Tes dulu di staging. Semua keliatannya OK. Bug udah dibasmi.
Balik ke lokal. Merging branch ke master. Terus push ke repository & hapus branch.
|
|
mac$ git checkout master mac$ git merge hotfix_stupid_bug mac$ git branch -d hotfix_stupid_bug mac$ git push origin |
Login ke production & update.
Whewww…