Openshift构建脚本不设置环境变量

时间:2014-04-02 15:41:33

标签: python openshift

我试图使用openshift部署一些应用程序,但我需要配置代理以允许盒式磁带从pip下载一些库。

但是,尝试导出预构建挂钩(或action_hooks中的任何其他挂钩)所需的环境变量只是不坚持。

如何在openshift盒式磁带中设置任意环境变量?

1 个答案:

答案 0 :(得分:0)

尝试使用rhc env set命令设置它们

corey-redhat:.openshift cdaley$ rhc env --help
Usage: rhc env <action>

Manages the user-defined environment variables set on a given application. To see a list of all
environment variables use the command 'rhc list-env <application>'. Note that some predefined
cartridge-level environment variables can also be overriden, but most variables provided by gears
are read-only.

Type 'rhc set-env --help' for more details.

List of Actions
  list          List all environment variables set on the application
  set           Set one or more environment variable(s) to your application
  show          Show the value of one or more environment variable(s) currently set to your
                application
  unset         Remove one or more environment variable(s) currently set to your application