Skip to content

A way to configure ezpublish, when using a multi stage environment.

License

Notifications You must be signed in to change notification settings

e42sh/ezpublish-configurator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eZ Publish configurator

A way to configure ezpublish 4 installations, when using a multi stage environment for instance int, stage or prod.

Provides:

  • Avoid duplication of site access configurations, that differ only in some parts.
  • Keeps sensitive data like database credentials, api keys out of scm.
  • No kernel hacks.

Requirements:

  • There is a dependency to eZ Publish 4 \eZINI class, that currently cannot be covered by composer. So you must point to a valid eZ document root (see usage).

Install

Add the library to your project (e.g. via Composer)

{
   "repositories": [
       {
           "type": "vcs",
           "url": "https://github.com/p7s1digital/ezpublish-configurator"
       }
   ],
   "require": {
       "psd/ezpublish-configurator": "dev-master"
   }
}

Sample Configuration

Here is a small configuration file that holds sensitive database credentials.

# The settings file to override
settings/override:
    site.ini.append.php:
        # Defines block values that can be overwritten.
        DatabaseSettings:
            # The variable that can be overwritten.
            Server: 127.0.0.1
            Port: 3306
            User: dbuser
            Password: dbpassword
            Database: ez_db
            Charset: utf8
            Socket: /var/lib/mysql/mysql.sock
extension/myextension/settings:
    site.ini.append.php:
        MyBlock:
            MyVar: true

Usage

Executing the CLI script:

 $ php bin/configurator update-configuration prod-env.yml /var/www/ezpublish

About

A way to configure ezpublish, when using a multi stage environment.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%