RHC没有在OpenShift实例上工作

时间:2014-06-09 04:05:19

标签: gem openshift redhat openshift-client-tools

我刚开始使用Node,所以我在OpenShift上创建了一个实例,并尝试安装rhc,以便为我的域名设置别名。

我运行了以下内容,并且rhc(1.25.2)的安装成功。

gem install rhc

下一步是运行:

rhc setup

但是,我收到了错误

bash: rhc: command not found

帮助将不胜感激。最终,我想解决的问题是阻止我的网站重定向http://www.example.com - > https://www.example.com/app

-

更新

我发现rhc位于/var/lib/openshift/[MYUSERDIR]/.gem/bin,我尝试运行设置,最后收到了这条消息:

./rhc setup
OpenShift Client Tools (RHC) Setup Wizard

This wizard will help you upload your SSH keys, set your application namespace, and     check that other programs like Git are properly installed.

An unexpected error occured: undefined method `[]' for nil:NilClass

更新2:

rhc setup现在运行,但在尝试生成令牌时失败:

Generate a token now? (yes|no) yes
Generating an authorization token for this client ... /usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /var/lib/openshift/[hidden]/.openshift (Errno::EACCES)

0 个答案:

没有答案