简体   繁体   English

Azure devops-Release Pipeline没有针对运行时堆栈的PHP 7.2的选项,但Azure App服务支持

[英]Azure devops - Release Pipeline has no option for PHP 7.2 for Runtime Stack, but the Azure App service does

When I am configuring my Azure pipeline (linux webapp, build-inn image), I only get a small subset for the Runtime stack when using the following template when setting up the stages in release pipeline 'Deploy a PHP app to Azure App Service and Azure Database for MySQL' 在配置Azure管道(Linux Web应用程序,内置映像)时,在发布管道中设置阶段时使用以下模板时,我只会得到运行时堆栈的一小部分'将PHP应用程序部署到Azure应用服务并适用于MySQL的Azure数据库

For my application I need PHP 7.2, which I can setup in the Azure Portal, under my App Service -> Application setting -> Runtime stack. 对于我的应用程序,我需要PHP 7.2,可以在Azure门户中的应用程序服务->应用程序设置->运行时堆栈下进行设置。

On every deploy I now have to check the Service still runs on 7.2 and did not revert back to 7.0 现在,在每个部署上,我必须检查服务是否仍在7.2上运行,并且没有还原回7.0

Does anyone know how can I setup my release pipeline so I can select PHP 7.2 for the stages in the release pipeline? 有谁知道如何设置发布管道,以便为发布管道的各个阶段选择PHP 7.2? I did check to see if I could manipulate the pipeline template, but could not find anyting. 我确实检查了是否可以操纵管道模板,但是找不到任何东西。

Thanks 谢谢

Wilma 威尔玛

You can change your php version of your app in many ways apart from using azure portal->app settings 除了使用Azure门户->应用程序设置外,您还可以通过多种方式更改应用程序的php版本

Other ways like 其他方式如

  1. Azure power shell Azure电源外壳

  2. Azure CLI Azure CLI

  3. .user.ini file .user.ini文件

..... .....

Refer here for the full details 详细信息请参见此处

I managed to set the PHP to 7.2 using the following devOps setting: 我设法使用以下devOps设置将PHP设置为7.2:

Post Deployment Action - Application and Configuration Settings - Configuration Settings 部署后操作-应用程序和配置设置-配置设置

Add

-linuxFxVersion php|7.2 -linuxFxVersion php | 7.2

That achieved what I wanted as part of the DevOps pipeline. 这实现了我作为DevOps管道的一部分所想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM