Can someone explain to me why and how .env file is used?
I tried to find an answer for Contao, but I couldn't understand it fully
Can someone explain to me why and how .env file is used?
I tried to find an answer for Contao, but I couldn't understand it fully
The .env file holds the credentials for the Contao dev mode (https://example.com/app_dev.php). The file is generated via
- console command: php vendor/bin/contao-console contao:install-web-dir --user=USER --password=PASSWORD
- Contao Manager (as of Contao 4.5)
Contao Community Moderator
→ Support options
Ok. But can you explain me usage of .env. How to use it and why
Usage? I have already told you for what the file is needed (Contao Debug Mode). The file is generated automatically by e.g. the Contao Manager (as of Contao >= 4.5) or via the console command (see above). So you don't have to worry about this .env file.
You can also enter the access data manually into the .env file: https://php-password-hash-online-too.../password_hash
Contao Community Moderator
→ Support options
Bookmarks