简体   繁体   中英

How do I deploy an Azure Website while using GitHub as source control?

I want to create a website and use GitHub for source control. How can I have Azure websites point to my GitHub account and pull the code from there?

Azure App Service supports continuous deployment to Web Apps from source code control and repository tools like BitBucket, CodePlex, Dropbox, Git, GitHub, Mercurial, and TFS. You can use these tools to maintain the content and code for your application, and then quickly and easily push changes to your Azure web app when you want.

There are a several steps to make this happen:

  1. Create an empty website on Azure . 在此处输入图片说明
  2. Push your web code from your local Git repository to one on GitHub.
  3. From with in the Azure portal, click on your newly created website, followed by Deployments -> Set up continuous deployment . 在此处输入图片说明
  4. At the next screen, you'll be prompted to select your source. Select GitHub . 在此处输入图片说明
  5. You'll be prompted to enter your credentials.
  6. Select the repository you'd like to monitor, and if possible, the branch . 在此处输入图片说明

In a few moments Azure will pull the code from your GitHub repository, and you'll be good to go!

You are not limited to GitHub, though. You can also deploy from BitBucket, CodePlex, Dropbox, GitHub, or Mercurial results in a continuous deployment process where Azure will pull in the most recent updates from your project, nearly instantly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM