gpt4 book ai didi

Azure 应用程序计划上的 WordPress

转载 作者:行者123 更新时间:2023-12-03 05:50:21 24 4
gpt4 key购买 nike

我们使用 Wordpress 发布的应用程序创建了 Azure Wordpress。该部署创建了 3 件事:

  1. 应用计划
  2. 应用服务
  3. 适用于 MYSQL 的 Azure 数据库

一切都很顺利,但是,我们正在尝试创建一个部署槽。当我们创建插槽时,我们从原始应用程序中选择“克隆配置”。

插槽已发布并准备就绪,但它什么也没有,它只是说欢迎使用您的应用服务应用程序等。

我的问题是:

  1. 部署槽是否共享数据库?
  2. 部署槽是 Azure 上 WordPress 的一个选项吗?

注意 -当我通过 ftp 传输到该插槽时,我看不到复制的任何内容。

提前谢谢您。

最佳答案

克隆配置仅复制应用程序设置/连接字符串。该插槽有自己的存储空间,因此您还需要将 WordPress 代码和内容文件部署到该插槽。

只需将插槽视为常规 Web 应用程序 - 实际上,它就是这样 - 但具有能够在两个 Web 应用程序(插槽)之间轻松交换的良好功能。

来自https://learn.microsoft.com/en-us/azure/app-service/web-sites-staged-publishing :

There is no content after deployment slot creation. You can deploy to the slot from a different repository branch, or an altogether different repository. You can also change the slot's configuration. Use the publish profile or deployment credentials associated with the deployment slot for content updates. For example, you can publish to this slot with git.

关于Azure 应用程序计划上的 WordPress,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48453476/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com