OpenSource For You

Working with the command-line

-

To give you an idea of how the command-line works, here are a few pointers to help you get started. In this case, let’s begin by creating a new domain (or alternativ­ely, namespace):

rhc domain create -n [DomainName] -l [rhlogin] -p [password]

Then new applicatio­ns can be created as follows:

rhc app create -a [AppName] -t [AppType]

Both manual and automatic scaling options are available. Automatic scaling can be enabled with the -s option while creating the applicatio­n (adding it to the above command). To scale the applicatio­n manually, an SSH connection to the applicatio­n needs to be establishe­d and changes can be made with the addgear and remove-gear commands: ssh [AppUUID]@[AppName]-[DomainName].example.com add-gear -a [AppName] -u [AppUUID] -n [DomainName] remove-gear -a [AppName] -u [AppUUID] -n [DomainName]

New cartridges can be also be added, if needed, as follows:

rhc app cartridge add -a AppName -c CartType

ThHsH FRPPDQGs hHOS LQ HDsLOy FRQfiJXULQ­J WhH applicatio­n. Developers can make changes to the code, or deploy the applicatio­n, with the Git commands.

These are some of the commands generally used to set up and get started. There are a lot more options and arguments available, for which you can refer to the documentat­ion.

2SHQ6hLIW FDQ DOsR EH FRQfiJXUHG WR wRUN GLUHFWOy from Eclipse, with the help of an extension known as JBoss tools, which can be installed directly from the Eclipse marketplac­e. Then you will be able to create a new

Newspapers in English

Newspapers from India