Deploying Fixes in 'hotfix' Branch
By Basawaraj Savalagi on April 9, 2019Beginner
Code written to fix urgent issues are generally merged to 'hotfix' branch. You may need these changes to be deployed in a server. Below are the steps to deploy. Go to the application folder( ex: frappe-bench/apps/erpnext) and run below command to check if the 'hotfix' branch exists.
PS: since you're most likely in vim, to exit type
If not fetch it from Github repo by running the command:
git fetch upstream hotfix
Then run below commands:
git checkout hotfixgit pull upstream hotfixcd ../..bench setup requirementsbench buildbench restart
NOTE: It is best that both ERPNext and Frappe apps are running on the same branch. So if you're deploying the hotfix branch on either apps, be sure to change the branch of the other app too.
Was this article helpful?