定制 contextualcode/platformsh-siteaccess-matcher-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

contextualcode/platformsh-siteaccess-matcher-bundle

Composer 安装命令:

composer require contextualcode/platformsh-siteaccess-matcher-bundle

包简介

Platform.sh adopted eZ Platform Map\Host site access matcher.

README 文档

README

Paltform.sh allows you to have multiple environments (stage, feature specific and so). But those environments will use autogenerated URLs. And it might be a problem, if you have multiple siteaccesses in your eZ Platform installation and Map\Host matcher is used. This bundle override default Map\Host and tries to extract correct host name from Platform.sh environment variables. Which fixes this issue.

Installation

  1. Require contextualcode/platformsh-siteaccess-matcher-bundle via composer:
     $ composer require contextualcode/platformsh-siteaccess-matcher-bundle
    
  2. Enable this bundle in config/bundles.php:
     return [
         ...
         ContextualCode\PlatformShSiteAccessMatcherBundle\ContextualCodePlatformShSiteAccessMatcherBundle::class => ['all' => true],
     ]
    
  3. Add SITE_ACCESS_MATCHER_DOMAINS_PREFIX variable in .env (it is used when custom Platform.sh environment is synced to failover server):
     ###> contextualcode/platformsh-siteaccess-matcher-bundle ###
     SITE_ACCESS_MATCHER_DOMAINS_PREFIX=
     ###< contextualcode/platformsh-siteaccess-matcher-bundle ###
    
  4. Commit and deploy this changes to Platform.sh:
     $ git add composer.json composer.lock config/bundles.php .env
     $ git commit -m "Installing platformsh-siteaccess-matcher-bundle"
     $ git push platform master
    
  5. Done! All siteaccess will be matched correctly on all new Platform.sh environments with autogenerated URLs.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2017-10-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固