Environment variables

Joomlatools Platform tries to separate config from code as much as possible. To achieve this, we moved the configuration into environment variables. This keeps sensitive information safe from being included into your repositories whilst ensuring that everything is still configurable from a single location.

To read these environment variables, we use PhpDotEnv. For development purposes, you can store your config in the .env file in the root directory. See the getting started page for an example. On a production server, you would store these settings as an environment variable and not in a .env file.

The following environment variables are required:

  • JOOMLA_ENV
  • JOOMLA_DB_NAME
  • JOOMLA_DB_USER
  • JOOMLA_DB_PASS

These env vars can be configured to override their default values:

  • JOOMLA_DB_HOST
  • JOOMLA_DB_TYPE
  • JOOMLA_LOG_PATH
  • JOOMLA_TMP_PATH
  • JOOMLA_KEY
  • JOOMLA_CACHE
  • JOOMLA_DEBUG

Need Help?

Let our developers personally assist you. You can ask development related questions in our Support Center. Only for Business or Agency subscribers.