此内容没有您所选择的语言版本。

13.5.3. Directory Environment Variables


Directory environment variables return the directories where an application resides. These variables are always available to the application, regardless of which cartridges the application is using.
Expand
Table 13.4. Directory Environment Variables
Environment Variable Name Purpose
OPENSHIFT_HOMEDIR The home directory of the application.
OPENSHIFT_DATA_DIR A persistent data directory.
OPENSHIFT_REPO_DIR Repository containing the currently deployed version of the application.
OPENSHIFT_TMP_DIR A temporary directory you can use; SELinux protects data in this directory from other users.
OPENSHIFT_LOG_DIR Where all cartridge logs are stored.

Note

Many of these directories are emptied and rebuilt whenever new code is pushed to an application. The only persistent directory is OPENSHIFT_DATA_DIR. Therefore, Red Hat recommends that you store persistent files in the OPENSHIFT_DATA_DIR directory.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat