Environments

Environment file

All of the configuration files for the Exception framework are stored in the "envs" directory into default.php env file. Each option is documented, so feel free to look through the files and get familiar with the options available to you.

Multitenant configuration

By default Exception uses default.php env file but if you need you can use multiple env configuration files to specify different setups for each domain or subdomain poitend to web root.

Each tenant is able to use dedicated configuration, app folder, assets folder and storage folder if you need.
You can generate a new empty "app" with this CLI snippet: php ef app-new APP-NAME.
You can also create a new empty storage or asstes folder with these CLIs:
- php ef stg-new FOLDER-NAME
- php ef ast-new FOLDER-NAME

You can create also a new empty env file. The only thing you have to do is create an env file based on domain name using this command in your terminal:

php ef env-new TENANT

Remember that "Tenant" is a domain or subdomain and that if not explicitly declared, "www."" subdomain is included in "domain" env configuration.

Do you need help?

Write me an e-mail: [email protected]