ehmatthes / django-simple-deploy

A reusable Django app that configures your project for deployment
BSD 3-Clause "New" or "Revised" License
304 stars 26 forks source link

Support Platform.sh deployments if the user has more than one org #308

Closed ehmatthes closed 1 month ago

ehmatthes commented 2 months ago

Right now, deployment fails if the user has more than one org. Identify the multiple orgs, and let user choose which to use.

ehmatthes commented 1 month ago

Working notes

$ platform organization:list --yes --format csv
Name,Label,Owner email
<org-name>,<org-label>,<org-owner@example.com>
$ platform organization:list --yes --format csv
Name,Label,Owner email
<org-name>,<org-label>,<org-owner@example.com>
<org-name-2>,<org-label-2>,<org-owner-2@example.com>
ehmatthes commented 1 month ago

More working notes

ehmatthes commented 1 month ago

User has no orgs

$  platform organization:list --yes --format csv
No organizations found.

To create a new organization, run: platform org:create
ehmatthes commented 1 month ago

Final work