Environment of application. Possible values:
development or
production. Default value is
development.
If [Debug](generatesetup.html?id=debug) is enabled, the value will be set to
development.
After debugging/development, before deploying to production server, you should generate your project again with enviroment as
production, then the application will use the
config.production.php instead of the
config.development.php. The
config.production.php contains production database connection, SMTP server, JWT settings, etc..
Notes
Before generating your project for deployment, you should also review if you need to change the following advanced settings:
- Log error to file (For debugging your production site with the [Debug](generatesetup.html?id=debug) setting disabled)
- Compile container for production (Consider this if you have a very large number of tables)
- Generate route groups (Recommended to disable if you don't need routes like /cars/list)
- Use route cache (Consider this if you have a very large number of tables)
- Compress project .js (Recommended)
- Compress project .css (Recommended)