[TASK] Add .env file support
- Install helhum/dotenv-connector
- Override db credentials in additional.php so values are never changed when using the GUI
Fixes #89 (closed) #88 (closed)
ToDo:
-
include additional.php and ship it to the target server -
Configure additional.php for ddev and addweb_environment
variables -
Add example env file -
use .ddev/.env
/to set variables (.ddev/.env.web
(limited to the web container)web_environment
causing trouble with escaping$
, NOTE: Escape$
with$
?) -
Remove cron and use web_extra_daemons
to run the scheduler every 5 minutes
Example env file:
TYPO3_PROJECT_NAME=SurfCamp
TYPO3_DB_DRIVER=mysqli
TYPO3_DB_DBNAME=db
TYPO3_DB_USERNAME=<username>
TYPO3_DB_PASSWORD=<password>
TYPO3_DB_HOST=localhost
TYPO3_DB_PORT=3306
TYPO3_ENCRYPTION_KEY=<encryption-key>
TYPO3_INSTALLTOOL_PASSWORD=<encrypted-install-tool-password>
Edited by Jochen