Asks the user if they want to create a .terra.yml if none exists, then gathers necessary info (currently only document_root) to generate the file.
$ terra env:add dcco 7.x-4.x
Environment Source Code Path: (/Users/tommy/Apps/dcco/7.x-4.x)
Git branch or tag? [default branch] 7.x-4.x
No .terra.yml found. Would you like to create one? [y\N] y
Please enter the relative path to your exposed web files: [.] docroot
.terra.yml has been created in the repository root.
The result looks like this:
.terra.yml
# The relative path to your exposed web files.
document_root: docroot
This will then correctly set the app container's DOCUMENT_ROOT environment variable when enabling the environment.
Implementation of #115
Asks the user if they want to create a .terra.yml if none exists, then gathers necessary info (currently only document_root) to generate the file.
The result looks like this:
.terra.yml
This will then correctly set the app container's DOCUMENT_ROOT environment variable when enabling the environment.