imagex/recipe-pantheon
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
Copy Settings Files
Copy the provided settings files into your Drupal site's
sites/default/settingsdirectory. 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.)
Include Settings in Your Main Settings File
Edit your
sites/default/settings/includes.settings.phpfile and add the files to the$additionalSettingsFilesarray;Activate Redis and Solr Services on Pantheon
To enable Redis (object cache) and Solr (search) services, add the following to your
pantheon.ymlfile at the root of your repository:search: version: 8 object_cache: version: 6.2You can use the provided example file at
assets/pantheon.ymlas 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.
imagex/recipe-pantheon 适用场景与选型建议
imagex/recipe-pantheon 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 imagex/recipe-pantheon 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 imagex/recipe-pantheon 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-01-08