Open jonpugh opened 8 years ago
I've updated the issue with the new plan:
New commands:
terra environment:domains
- List all domains attached to an environment.
terra environment:domains add
- Add a domain to an environment.
terra environment:domains remove
- Remove a domain from an environment.
Ok, this seems to work!!
I'd like to add more features in the future like DNS checks, but I think it's working well enough to close the issue.
@jlyon: Check it out and let me know what you think!!
Awesome! I'll take a look today
This works great for me after I added domains: {}
to each environment in ~/.terra/terra
. This is really awesome. Nice work!
Note for others, "add" comes after app and environment in the command:
terra environment:domains [<app_name>] [<environment_name>] [<action>] [<domain>]
so:
terra environment:domains drupal dev add dev-drupal.example.com
Config.php
to turn Domains into an array or list: https://github.com/terra-ops/terra-cli/blob/master/src/terra/Config.php#L82terra\Command\Environment\EnvironmentDomains
: "environment:domains".terra\Console\Application::getDefaultCommands()
terra\Factory\EnvironmentFactory::getDockerComposeArray()