Reputation: 303
Currently when I clone the git repository where .ddev is set I need to install the DB and copy the .env and .htaccess file afterwards. I would like to do this with a hook and a specific command, like here: https://github.com/codeFareith/ddev-typo3cms-boilerplate/blob/master/.ddev/commands/host/autoinstall
a) Instead of using the .env use the web_environment config in ddev? https://ddev.readthedocs.io/en/latest/users/extend/customization-extendibility/#providing-custom-environment-variables-to-a-container
b) Instead of copy the .htaccess have it directly in git? I would not really prefere this.
Upvotes: 0
Views: 1252
Reputation: 12975
That's a lot of questions at once. (In issues and questions, try to ask just one question at a time, and try to make it as specific as possible.)
web_environment
puts the environment variable in your .ddev/config.yaml where it's easy to check in.Upvotes: 2