Get Started with Command Line Tool for Red Hat OpenShift PaaS with minimum required knowledge in order to do more which Red Hat PaaS actually offers. Previously, we published the basic guide for Installing Command Line Tool for Red Hat OpenShift PaaS on OSX. This time, we will be presenting some important and must to know information and commands for working with Red Hat OpenShift.
Purpose of this Get Started With Command Line Tool for Red Hat OpenShift PaaS Guide
General purpose for using PaaS has been mentioned in the article – Platform as a Service (PaaS) as an Alternative to More Costly IaaS. It is a practical fact that, there are aPaaS (Application Platform as a Service) which promotes their service as “Cloud Hosting” and charges a minimum fee regardless of the usage. One such example is Rackspace Cloud Sites, which charges $150.00 flat fee per month. Whitest, that particular form of service is managed on the serverside, the compromise of non access through git (or better option SSH) plus the higher charge is unacceptable to many. Red Hat OpenShift PaaS has free quota which is more than enough for initial development and even for small scale usage.
Get Started With Command Line Tool for Red Hat OpenShift PaaS
Minimum knowledge for handling files and folders through git basically is that of UNIX commands. Basic thing is, in case of git (which is Red Hat OpenShift PaaS), if you for example install WordPress on Red Hat OpenShift from their web interface, you first need to install the Command Line Tool for Red Hat OpenShift PaaS, then login and clone it, git clone is a standard git command :
rhc app git-clone mynewapp
If you are getting error, fix the SSH key first. There is alternative command exists to clone the repo. Now change directory to your application folder :
By the way, you can get details of your app with the command :
While, rhc account command gives the details of the account.
Now you can change as per your need in your App (WordPress for example). The rest is like typical git :
git add .
git commit -m "Whatever write here"
There are guides on OpenShift on their official website plus an active forum. You can learn and do experiment. Additionally our standard reference for git obviously always is helpful :