Message-ID: <731506871.3454.1485853259671.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3453_1354511042.1485853259671" ------=_Part_3453_1354511042.1485853259671 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Using environments

Using environments

Environment configuration as provided by Symfony was enhanced as= of eZ Publish 5.2 and eZ Publish Community Project 2013.06 to allow specif= ying this in the virtual host configuration.
You can configure several e= nvironments, from production, development or staging, even if for each one = of them you need require using different configurations sets.

Web server configuratio= n

For example, using apache, in the VirtualHost example in th= e Virtual host setup chapte= r the required VirtualHost configurations have been already in= cluded. You can switch to the desired environment by setting the ENVI= RONMENT environment variable to "prod", "dev" or other custom value, as you can see in the following example:

=20
    # Environment.
    # Possible values: "prod" and "dev" out-of-the-box, other values possib=
le with proper configuration (described below)
    # Defaults to "prod" if omitted
    SetEnv ENVIRONMENT "prod"
=20

eZ Publish Configuratio= n

If you want to use a custom environment (something else then "prod= " and "dev") the next step is to create the dedicated c= onfiguration files for your environment:

The name used as <env_name>= will be the one that can be used as value of the ENVIRONMENT = environment variable.

Those files must import the main configuration file, just like the defau= lt config_dev.yml already does. Here's an example:

=20
imports:
    - { resource: config.yml }
=20

This allows you to override settings defined in the main configuration f= ile, depending on your environment (like the DB settings or any other setti= ng you may want to override).

------=_Part_3453_1354511042.1485853259671--