Openshift rhc alias-add不能与-l用户名一起使用

时间:2014-04-28 08:25:46

标签: openshift openshift-client-tools

alias-list适用于-l username_2

rhc alias-list blog -l username_2

wheras

rhc alias-add blog www.somedomain.com -l username_2

没有考虑-l username2,它会为username_1创建别名

如何为帐户2添加别名?

2 个答案:

答案 0 :(得分:1)

嗯......那很奇怪。 User home~ / .openshift目录中有express.conf文件。此文件具有名为default_rhlogin的属性。尝试使用username_2更改此属性并检查是否有效。

答案 1 :(得分:1)

So I just ran into a similar problem and heres what it was for me. For some reason CREATE TABLE `tablename` ( `id` bigint(255) unsigned NOT NULL AUTO_INCREMENT, `time` varchar(26) NOT NULL DEFAULT '', `callid` varchar(40) NOT NULL DEFAULT '', `queuename` varchar(20) NOT NULL DEFAULT '', `agent` varchar(20) NOT NULL DEFAULT '', `event` varchar(20) NOT NULL DEFAULT '', `data` varchar(100) NOT NULL DEFAULT '', `data1` varchar(40) NOT NULL DEFAULT '', `data2` varchar(40) NOT NULL DEFAULT '', `data3` varchar(40) NOT NULL DEFAULT '', `data4` varchar(40) NOT NULL DEFAULT '', `data5` varchar(40) NOT NULL DEFAULT '', `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `queue` (`queuename`), KEY `event` (`event`) ) DEFAULT CHARSET=utf8; only understood what i was trying to do once I switched to the folder with the app/account I wanted to deal with. Even though I had logged out of the previous account and ran rhc setup for the second account (and included the rhc option), it was still looking for the domain of the first account.

So to make it work I had to -l to the folder containing the app I was trying to alias (as well as actually switching to the right account with logout, and setup or -l). After that it worked perfectly for me. Hope this helps.