Windows Azure Web Hosting service: Deploying your Php/nodejs site with git

Source: Internet
Author: User
Keywords Php azure azure nodejs

The previous article describes how to use Windows http://www.aliyun.com/zixun/aggregation/13357.html ">azure web hosting services to quickly set up a Web site, for developers, You can also use a service like this to deploy your PHP or Nodejs site, and you don't have to use Microsoft's development tools, and this article will deploy your Web site with git in the operating environment under MAC OS X.

Unlock the GIT deployment feature

In the previous article, we described how to use Windows Azure's management interface to build a Web site, and after building a good site, you can unlock the GIT deployment feature in the dashboard of the admin Web site:

Start GIT deployment functionality

After you press "set up git publishing", Windows Azure starts to build git repository for this Web service, and seeing the bottom shows that it's a success and ready to start deploying:

Complete the build Git repository, ready to start deployment

This screen will also display the URL of git repository, if you have not installed Git, you can also refer to the instructions below.

Deploying a Web site with git
After you open git deployment, you can create an environment on your development machine, starting with a index.php file that reads:

<?php
echo "Hello, World (from PHP on Windows Azure)"; Then, build a local git repository on your development machine and complete the first commit:

Build git repository on the local side

The next step is to deploy this commit to Windows Azure's Web service, remember the URL of your Web service, and then use the instructions below to join the remote repository and push the local commit push:

Deploy to Windows Azure

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.