在Azure上部署Laravel应用 [英] Deploying a Laravel App on Azure

查看:194
本文介绍了在Azure上部署Laravel应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在部署laravel 5.1应用程序时遇到问题,我没有自定义的部署脚本...我已经添加了

I am having a problem deploying my laravel 5.1 app, i don't have a customized deployment script... I already added the web.config file as specified in this tutorial

我已经安装了作曲家.我已经将composer的超时时间增加到2000年.问题是直到现在部署仍在加载中,并且已经过去了数小时.

I have already installed composer. I already increased the composer timeout to 2000. The problem is that until now the deployment is still loading and it has been hours passed.

我正在使用azure网络应用服务.

I'm using azure web app service.

推荐答案

这是当前用于将Laravel 5应用程序部署到Azure Web Apps的解决方法.

Here is a workaround currently for deploying Laravel 5 applications to Azure Web Apps.

我在"post-install-cmd"脚本关闭处删除了以下命令:

I removed the following commands under "post-install-cmd" scripts closure:

"php artisan clear-compiled",
"php artisan optimize"

然后利用Git部署到Azure Web App.目前,它不会在部署时引发超时处理异常.

Then Leverage Git to deploy to Azure Web App. For now, it will not throw the timeout processing exception when deploying.

然后,与安装composer一样,安装站点的Visual Studio在线扩展:

Then install the Visual Studio online extension of your site the same as installing composer:

单击浏览器按钮登录VSO,该VSO可以修改和运行您的应用程序的控制台命令:

Click brower button to login the VSO which can modify and run console commands of your application:

单击控制台"按钮,打开cmdlet,运行这些命令:

click the "console" button open the cmdlet, run those command:

"php artisan clear-compiled",
"php artisan optimize"

其余步骤,您仍然可以按照以下教程

And rest steps, you still can follow this tutorial

这篇关于在Azure上部署Laravel应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆