Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| ★ wanayoo — archive 1999 https://github.com/deis/workflow-cli/issues/302 | Nouvelle recherche | Portail wanayoo |
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
It would be great if the deis cli could automatically lookup the correct deis profile based on the git remote, either by enumerating the existing profiles for a matching controller url or by using a special naming convention for profiles.
For example let's say the controller is at
deis.staging.example.comthen the deis cli could look for~/.deis/staging.example.com.json.The remote to use for lookup would default to
deis, but could be overridden using a global-r/--remoteoption, so you could do something like:If an environment variable
DEIS_PROFILEis set or if-c/--configwere to be given, these would take precedence over the automatic lookup based on the remote.Having this feature would greatly reduce the friction when working with multiple apps on multiple clusters or same app on multiple clusters, where it currently can happen very easily that the wrong deis profile is used (eg. scaling down production instead of staging).