Tags

Step1. Install Ruby
Step2. Install Git
Step3. Install rhc – a Ruby gem

Step1. Install Ruby
* Download Ruby installer for windows at https://rubyinstaller.org/

Step2. Install Git
* Download the Git for windows and install it to your local machine – https://git-for-windows.github.io/

Step3. Install rhc – a Ruby gem

$ gem install rhc
Successfully installed net-ssh-4.1.0
Successfully installed net-scp-1.2.1
Successfully installed net-ssh-gateway-2.0.0
Successfully installed net-ssh-multi-1.2.1
The `minitar` executable is no longer bundled with `minitar`. If you are
expecting this executable, make sure you also install `minitar-cli`.
Successfully installed minitar-0.6.1
Successfully installed powerbar-1.0.18
Successfully installed minitar-cli-0.6.1
'archive-tar-minitar' has been deprecated; just install 'minitar'.
Successfully installed archive-tar-minitar-0.6.1
Successfully installed highline-1.6.21
Successfully installed commander-4.2.1
Successfully installed httpclient-2.6.0.1
Successfully installed open4-1.3.4
===========================================================================
If this is your first time installing the RHC tools, please run 'rhc setup'
===========================================================================
Successfully installed rhc-1.38.7
13 gems installed

Once you installed the rhc gem, you’ll change directory to your root app then execute this command:

$ rhc setup
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: openshift.redhat.com.

Enter the server hostname: |openshift.redhat.com|
You can add more servers later using 'rhc server'.
Login to openshift.redhat.com: myemail@gmail.com
Password: **********

OpenShift can create and store a token on disk which allows to you to access the server without using your password. The key is stored in your home directory
and should be kept secret.  You can delete the key at any time by running 'rhc logout'.
Generate a token now? (yes|no) yes
Generating an authorization token for this client ... lasts about 1 month

Saving configuration to C:\Users\ADMIN\.openshift\express.conf ... done

No SSH keys were found. We will generate a pair of keys for you.

    Created: C:/Users/ADMIN/.ssh/id_rsa.pub

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

You can upload your public SSH key at a later time using the 'rhc sshkey' command

In order to fully interact with OpenShift you will need to install and configure a git client if you have not already done so. Documentation for installing
other tools you will need for OpenShift can be found at https://www.openshift.com/developers/install-the-client-tools

We recommend these free applications:

  * Git for Windows - a basic git command line and GUI client http://msysgit.github.io/
  * TortoiseGit - git client that integrates into the file explorer http://code.google.com/p/tortoisegit/
 Checking common problems

Your private SSH key file should be set as readable only to yourself.  Please run 'chmod 600 C:\Users\ADMIN\.ssh\id_rsa'

Checking for a domain ... sudogem
Checking for applications ... found 1

  nodeexpressjsblogv1 http://nodeexpressjsblogv1-sudogem.rhcloud.com/

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

Your client tools are now configured.

That’s it!!

References:
https://developers.openshift.com/getting-started/windows.html

Advertisements