承接 imagex/recipe-pantheon 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

imagex/recipe-pantheon

最新稳定版本:1.0.0-alpha1

Composer 安装命令:

composer require imagex/recipe-pantheon

包简介

Pantheon specific install and config for ImageX.

README 文档

README

This recipe provides configuration and settings files to help you set up a Drupal site optimized for the Pantheon hosting environment. It includes best-practice settings for file paths and integration with Pantheon's platform features.

What is Included?

  • assets/pantheon.settings.php: Pantheon-specific settings, including file temp path overrides and integration with Pantheon-provided assets.
  • assets/redis.settings.php: (If present) Redis cache integration settings for Drupal on Pantheon.
  • assets/pantheon.yml: Example Pantheon configuration file to enable Redis and Solr services.

Composer Packages Included

This recipe requires several packages to optimize your Drupal site for Pantheon:

  • drupal/imagemagick: Integrates the ImageMagick toolkit with Drupal for advanced image processing and better performance, recommended for Pantheon environments where image manipulation is required.
  • drupal/pantheon_advanced_page_cache: Provides advanced page caching tailored for Pantheon, improving site speed and leveraging Pantheon's edge caching infrastructure.
  • drupal/redis: Adds Redis integration for Drupal, enabling high-performance caching and session storage, which is supported and recommended on Pantheon for scalable sites.
  • drupal/search_api_pantheon: Integrates Drupal's Search API with Pantheon's Solr service, allowing for robust, scalable search functionality optimized for Pantheon hosting.
  • pantheon-systems/drupal-integrations: Contains Pantheon-specific integrations and helper code to ensure Drupal works seamlessly with Pantheon's platform features and workflows.

Installation Instructions

  1. Copy Settings Files

    Copy the provided settings files into your Drupal site's sites/default/settings directory. For example:

    cp assets/pantheon.settings.php /path/to/docroot/sites/default/settings/pantheon.settings.php
    cp assets/redis.settings.php /path/to/docroot/sites/default/settings/redis.settings.php
    

    (Copy only the files you need. If you do not use Redis, you can skip the redis.settings.php file.)

  2. Include Settings in Your Main Settings File

    Edit your sites/default/settings/includes.settings.php file and add the files to the $additionalSettingsFiles array;

  3. Activate Redis and Solr Services on Pantheon

    To enable Redis (object cache) and Solr (search) services, add the following to your pantheon.yml file at the root of your repository:

    search:
      version: 8
    object_cache:
      version: 6.2
    

    You can use the provided example file at assets/pantheon.yml as a starting point. For more details on Pantheon YAML configuration, see the Pantheon documentation.

    NOTE: Don't forget to activate both services in the Pantheon Dashboard after adding them to your pantheon.yml.

Best Practices

  • Do not commit sensitive information (such as database credentials) to version control.
  • Always review and test settings in a non-production environment before deploying to live.
  • For more information on Pantheon Drupal best practices, see Pantheon Docs.

This recipe is maintained for compatibility with Drupal 10/11 and Pantheon platform requirements.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-08