There are 3 major Azure service we can use to deploy projects on, which are Virtual Machines, Cloud Services and Web Apps. But the simplest way is to deploy on Web Apps server.
Here are the steps to deploy PHP project on Azure Web Apps Server by git:
1, Sign in Azure manage portal , Click “NEW” in bottom, select “COMPUTE”=>”WEB APP”=>”QUICK CREATE” and enter server name in URL section, to create a new empty Web application.
2, Click “WEB APP” button on the left navigation, in this dashboard we can see the web site we created above, click web site name to enter in management page.
3, In dashboard page, click “set up deployment form source control” in “quick glance” column, select “Local Git repository” to create a git repository. Now in deployments page, we can see the guide to deploy project by git.
4, In your local project root directory, run the following commands to deploy as shown on the page:
Furthermore, we can simply use FTP tool to upload the project to Azure Server, please see this simple sample:
http://blogs.technet.com/b/sams_blog/archive/2014/11/14/azure-websites-deploy-php-website-using-ftp.aspx
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…