Setting up dev, staging, and production environments

Elefant lets you to specify alternate configurations for your development, staging, and production servers. This takes two steps to setup:

  1. Duplicate the conf/config.php file and name it after your environment name, e.g. conf/development.php or conf/staging.php.

  2. In your .htaccess or web server configuration, set the ELEFANT_ENV environment variable. For Apache you would add a line like this:

SetEnv ELEFANT_ENV development

Now you can edit your different configuration files to suit your needs in each separate environment, and Elefant will load the correct one in each context.

Edit this page.
This documentation was generated by the Elefant Documentation Project. We're always open to new contributions *wink* *wink*