Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure: quickly change branch used on continuous deployment (github)

I have a webapp on Azure that is connected to github to do continuous deployment. Is there any quick way to change the branch it is connected to or I have to disconnect and then connect again to select the new branch?

The problem is that Azure has a bug somewhere that when I disconnect I can only connect again without an error, after 15 or 30 minutes of disconnecting...

like image 392
AlfaTeK Avatar asked Feb 18 '16 08:02

AlfaTeK


2 Answers

Try go to your scm site "https://{site name}.scm.azurewebsites.net"

Debug Console -> Navigate to D:\home\site\deployments

Edit settings.xml and change to your desire branch.

<?xml version="1.0" encoding="utf-8"?>
<settings>
    <deployment>
        <add key="branch" value="master" />
    </deployment>
</settings>
like image 178
Xiaomin Wu Avatar answered Sep 21 '22 15:09

Xiaomin Wu


Using the xplat-cli you can do:

azure site repository <yourbranch>
azure site repository sync
like image 23
jakobandersen Avatar answered Sep 22 '22 15:09

jakobandersen