CakePHP的3.0或GT;在Azure上? [英] Cakephp 3.0 or > on Azure?

查看:250
本文介绍了CakePHP的3.0或GT;在Azure上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Azure上Web应用程序运行蛋糕3.0或更高版本?我有一个应用程序在一个3+版本本地运行,但是当我在我的Azure的web应用程序CakePHP安装它的运行2.5.1。

Is it possible to run Cake 3.0 or higher on Azure Web Apps? I have an app running locally on a 3+ version but when I installed CakePHP on my Azure web app it's running 2.5.1.

我觉得一样,它只是一个上传所有3.0版本创建的新文件和数据库的问题,而是惊有某种写访问的新蛋糕将因此需要$ P $从运行和燃烧一吨我的时间pventing它。

I feel like it's just a matter of uploading all of the newer files and the db created for the 3.0 version but scared there is some kind of write access the new cake will need thus preventing it from running and burning a ton of my time.

我开始学习PHP 3个星期前这么叫我对于新手可能是一个侮辱newbs。

I started learning PHP 3 weeks ago so calling me a newb is probably an insult to newbs.

本文告诉回答我的大部分问题原来就这个问题。

This article tells answered most of my original questions regarding this issue.

推荐答案

是的,这是可能的部署 CakePHP的> 3.0 应用程序Azure的Web应用程序。但是,我们需要一些preactions使运行该应用程序。通常情况下,你可以尝试以下步骤:

Yes, it is possible to deploy CakePHP > 3.0 applications to Azure Web Apps. But we need to some preactions to make the application to run. Generally, you can try to following steps:


  1. 创建一个空的Azure的Web应用程序,并启用作曲扩展,并且还可以启用 Visual Studio的在线的易剧本修改和命令的运行。请参照<一个href=\"https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#enable-composer-automation-with-the-composer-extension\" rel=\"nofollow\">https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#enable-composer-automation-with-the-composer-extension更多。

  2. 创建一个名为的web.config http://book.cakephp.org/3.0/en/installation.html#iis7-windows-hosts 在应用程序的根目录。

  3. 添加在Azure上运行PHP的 inlt 扩展。添加在你的根目录下名为外部文件夹,创建该文件夹的内容在文件 ext.ini
    扩展= p​​hp_intl.dll 。添加设置应用到你的Web应用程序的关键 PHP_INI_SCAN_DIR 和值 D:\\家\\网站\\ wwwroot的\\分机 。你也可以做到这一步杠杆部署后 Visual Studio的在线扩展。请参阅 https://azure.microsoft.com/ EN-US /文档/文章/ web站点的PHP配置的详细信息/

  4. 设置您的Azure的Web应用程序的开发环境,部署CakePHP的应用程序通过混帐到Azure。请参照<一个href=\"https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#set-up-the-development-environment\" rel=\"nofollow\">https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#set-up-the-development-environment了解详情。

  1. Create an empty Azure Web Apps, and enable Composer extension, and also you can enable Visual Studio Online for easy script modifications and command running. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#enable-composer-automation-with-the-composer-extension for more.
  2. Create a file named web.config with the content at http://book.cakephp.org/3.0/en/installation.html#iis7-windows-hosts in the root directory of your application.
  3. Add the inlt extension in PHP runtime on Azure. Add a folder named ext in your root directory, create a file ext.ini in this folder with the content: extension=php_intl.dll. Add an App Setting to your Web App with the key PHP_INI_SCAN_DIR and value d:\home\site\wwwroot\ext. You also can do this step leverage Visual Studio Online extension after deployment. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-configure/ for details.
  4. Set up the development environment of your Azure Web Apps, deploy your CakePHP application to Azure via Git. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#set-up-the-development-environment for details.

这篇关于CakePHP的3.0或GT;在Azure上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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