openshift redhat rhc

1. Setup

$ rhc setup
/var/lib/gems/1.8/gems/highline-1.6.21/lib/highline/system_extensions.rb:230: warning: Insecure world writable dir /media/disk-1/eclipse_android in PATH, mode 040777
/var/lib/gems/1.8/gems/highline-1.6.21/lib/highline/system_extensions.rb:230: warning: Insecure world writable dir /media/disk-1/eclipse_android in PATH, mode 040777
OpenShift Client Tools (RHC) Setup Wizard

This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.

If you have your own OpenShift server, you can specify it now. Just hit enter to
use the server for OpenShift Online:
Enter the server hostname: ||

You can add more servers later using 'rhc server'.

Using an existing token for to login to

Saving configuration to /home/dsin/.openshift/express.conf ... done

No SSH keys were found. We will generate a pair of keys for you.
/var/lib/gems/1.8/gems/rhc-1.37.1/lib/rhc/helpers.rb:578: warning: Insecure world writable dir /media/disk-1/eclipse_android in PATH, mode 040777

Created: /home/dsin/.ssh/

Your public SSH key must be uploaded to the OpenShift server to access code.
Upload now? (yes|no)

default (type: ssh-rsa)
Available: true

You can enter a name for your key, or leave it blank to use the default name.
Using the same name as an existing key will overwrite the old key.

Provide a name for this key: |phongekdsinlapto| dsin-dell-linux

Uploading key 'dsin-dell-linux' ... done

Checking for git ... found git version

Checking common problems .. done

Checking for a domain ... dsin

Checking for applications ... found 1


You are using 1 of 3 total gears
The following gear sizes are available to you: small

Your client tools are now configured.

2. ssh

$ rhc ssh dsin
Connecting to ...


You are accessing a service that is for use only by authorized users.
If you do not have authorization, discontinue use at once.
Any use of the services is subject to the applicable terms of the
agreement which can be found at:


Welcome to OpenShift shell

This shell will assist you in managing OpenShift applications.

Shell access is quite powerful and it is possible for you to
accidentally damage your application. Proceed with care!
If worse comes to worst, destroy your application with "rhc app delete"
and recreate it

Type "help" for more info.

app-deployments app-root gear-registry git haproxy nodejs

NOTE : to view deploy log


NOTE : sign-in as others

rhc ssh uisp -l

ref :

3. create application ( either through website or through rhc )

4. Every OpenShift application you create has its own Git repository that only you can access.

To deploy app,

$ git push

ref : Official openshift page


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s