Elefant can read its settings from environment variables, which can be useful for containerizing your Elefant app deployments. These settings by default include:
ELEFANT_ENV - The base configuration file to load for the current environmentELEFANT_SITE_NAME - The name of your websiteELEFANT_EMAIL_FROM - The address to use when sending transactional emailsELEFANT_DEFAULT_PASS - The default password for automated installsELEFANT_DOMAIN - The domain name the website is usingELEFANT_TIMEZONE - The timezone of the siteELEFANT_UPDATES - Whether to check for Elefant updates in the Elefant admin toolbarELEFANT_SITE_KEY - A unique private key for CSRF token verificationELEFANT_DB_DRIVER - The database driver to use (e.g., sqlite, mysql)ELEFANT_DB_FILE - The database file to read from (for SQLite)ELEFANT_DB_HOST - The database host to connect toELEFANT_DB_NAME - The database name to connect toELEFANT_DB_USER - The database user to connect asELEFANT_DB_PASS - The password of the user to connect to the database asELEFANT_SESSION_NAME - What to name session cookiesELEFANT_SESSION_HANDLER - Set the backend session storage handlerELEFANT_SESSION_DOMAIN - The domain to limit session cookies toELEFANT_SESSION_DURATION - The lifetime of a session cookieJOBQUEUE_BACKEND - The job queue backend to use (currently only "beanstalkd" is supported)JOBQUEUE_HOST - The job queue host to connect toJOBQUEUE_PORT - The job queue port to connect toIf your environment variables are named differently, you can modify the conf/envmap.php
file to specify alternate environment variable names to look for. For example,
to read your database host name from MYSQL_HOST, you would edit the following line:
ELEFANT_DB_HOST = MYSQL_HOST