Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
596 views
in Technique[技术] by (71.8m points)

php - Deploy Laravel to Azure

I am new to deploy a website.

I have all the code about the website in my laptop, but I don't know how to move it to the real server the Microsoft Azure.

Could anyone tell me how to deploy Laravel 5+ to Azure or any tutorials about it.

Thanks!!!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.
enter image description here

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.

enter image description here

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:

enter image description here

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...