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

12.2. Adding a Cartridge to an Application


When adding a cartridge to an application with the client tools, there are several options available that are used to specify the required information.
Expand
Table 12.1. Options When Adding Cartridges
Option Description
-a, --app [NAME] Name of an application.
-n, --namespace [NAME] Name of a domain.
-e, --env [VARIABLE=VALUE] Environment variable(s) to be set on this cartridge. It can also be a path to a file that contains the environment variables.
-g, --gear-size [SIZE] Gear size determines how much memory and CPU a cartridge consumes.
-c, --cartridge [CART_TYPE] Type of cartridge to add to an application.
Add a cartridge to an application with the following command, specifying the desired cartridge and the name of the application:
$ rhc cartridge add Cart_Name -a App_Namerhc cartridge add Cart_Name -a App_Namerhc cartridge add Cart_Name -a App_Namerhc cartridge add Cart_Name -a App_Name
Copy to Clipboard Toggle word wrap
Specifying Cartridge Gear Size

When adding a cartridge to an application, specify the cartridge gear size with the -g, or --gear-size option along with the gear size. Note that this option is not available with non-scalable applications, because the web cartridge and any add-on cartridges are placed on the same gear.

$ rhc cartridge add Cart_Name -a App_Name -g gear_sizerhc cartridge add Cart_Name -a App_Name -g gear_sizerhc cartridge add Cart_Name -a App_Name -g gear_sizerhc cartridge add Cart_Name -a App_Name -g gear_sizerhc cartridge add Cart_Name -a App_Name -g gear_sizerhc cartridge add Cart_Name -a App_Name -g gear_size
Copy to Clipboard Toggle word wrap

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat