rhc command line tools come with the global option "-l, --rhlogin LOGIN". You have two options:
1) Use -l flag with every command to specify the login name OR
rhc app create <appname> <cartridge> [-l username1/username2]
2) Run "rhc setup -l LOGIN" between the sessions. Once done managing apps from one account you can end the session for it by running "rhc account logout".
rhc setup -l username1 rhc app create <appname> <cartridge> rhc account logout rhc setup -l username2
When you can "rhc setup" command, the username information gets stored in .openshift/express.conf file; hence the need to run it again when you want to switch the account.
Read full article from openshift rhc setup using multiple accounts - Stack Overflow
No comments:
Post a Comment