跳转到主要内容
你行网

Main navigation

  • 首页
  • 文章
  • 教程
  • 视频
  • 下载
  • 社区
  • 网站导航
User account menu
  • 登录

面包屑

  1. 首页

Drupal 8中的多站点文件夹结构

由 hrs, 22 九月, 2019
标签
drupal

以下是Drupal 8的多站点结构示例。为简单起见,未列出其他Drupal核心文件夹和文件。

多站点结构:

-- core

-- modules
   -- contrib
   -- custom

-- themes
   -- contrib
   -- custom

-- sites
   -- site1
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
         -- files
   -- site2
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
        -- files
   -- site3
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
        -- files

Devops场景:

在多站点环境中,通常每个站点维护者都维护自己的站点代码。在复杂的环境中,前端开发人员还希望独立于常规Drupal部署的生产部署。下面是一个示例,说明如何通过多个存储库分隔Drupal 8多站点文件夹。假定每个站点都有其自己的数据库,并且如下所示共享代码。

.                    ----> Repository1 (common to all the developers)
-- core                                                           

-- modules
   -- contrib
   -- custom

-- themes
   -- contrib
   -- custom           ----> Repository2 (managed by front end developers)

-- sites
   -- site1            ----> Repository3 (managed by site1 developers)
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
         -- files
   -- site2            ----> Repository4 (managed by site2 developers)
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
        -- files
   -- site3            ----> Repository5 (managed by site3 developers)
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
        -- files

 该模型具有以下优点:

1.前端开发人员可以从常规Drupal部署中进行独立部署。

2.每个站点维护者都可以进行独立部署(例如,每个站点维护者可以有自己的发布日期)。

评论

  • 登录或注册以发表评论

书籍遍历链接: Drupal 8中的多站点文件夹结构

  • 多站点Drupal
  • 向上
  • Drupal 8多站点

相关文章

教程节点

  • 概观
  • 系统要求
  • 安装Drupal 8
  • 将Composer添加到现有站点
  • 可信主机设置
  • 更新Drupal 8
  • 管理Drupal 8站点
  • 扩展Drupal 8
  • 贡献的模块
  • 多站点Drupal
    • Drupal 8中的多站点文件夹结构
    • Drupal 8多站点
    • Drupal多站点的用例
    • 多站点Drupal 8注意事项
  • 无障碍
RSS源
本站由阿里云强力驱动,幸运券优惠链接
Copyright © 2019 - 2021 你行网 版权所有  粤ICP备19072650号