Este conteúdo não está disponível no idioma selecionado.

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

Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat