Tags

To list all openshift apps
rhc apps

$ rhc apps
angularApp @ http://angularApp-myusername.rhcloud.com/ (uuid: abc33456qwerty78900abce)
--------------------------------------------------------------------------
  Domain:     myusername
  Created:    Jun 26  8:28 PM
  Gears:      1 (defaults to small)
  Git URL:    ssh://abc33456qwerty78900abce@angularApp-myusername.rhcloud.com/~/git/angularApp.git/
  SSH:        abc33456qwerty78900abce@angularApp-myusername.rhcloud.com
  Deployment: auto (on git push)

  icflorescu-nodejs-8.1.2 (Node.js Auto-Updating)
  -----------------------------------------------
    From:    https://raw.githubusercontent.com/icflorescu/openshift-cartridge-nodejs/master/metadata/manifest.yml
    Website: http://www.nodejs.org/
    Gears:   1 small

railsApp @ http://railsApp-myusername.rhcloud.com/ (uuid: abc123456efbdced789011bacde)
--------------------------------------------------------------------------
  Domain:     myusername
  Created:    May 30  6:39 PM
  Gears:      1 (defaults to small)
  Git URL:    ssh://abc123456efbdced789011bacde@railsApp-myusername.rhcloud.com/~/git/railsApp.git/
  SSH:        abc123456efbdced789011bacde@railsApp-myusername.rhcloud.com
  Deployment: auto (on git push)

  ruby-2.0 (Ruby 2.0)
  -------------------
    Gears: Located with mysql-5.5, phpmyadmin-4

  mysql-5.5 (MySQL 5.5)
  ---------------------
    Gears:          Located with ruby-2.0, phpmyadmin-4
    Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/
    Database Name:  abcd
    Password:       qwerty
    Username:       asdf

  phpmyadmin-4 (phpMyAdmin 4.0)
  -----------------------------
    Gears:          Located with ruby-2.0, mysql-5.5
    Connection URL: https://railsApp-myusername.rhcloud.com/phpmyadmin/

To list all environment variables.
rhc env-list {APPNAME}

$ rhc env-list mywebapp
OPENSHIFT_MYSQL_DB_DBNAME=mywebapp

To set the environment variable.
rhc env-set OPENSHIFT_MYSQL_DB_DBNAME={MYSQLDBNAME} –app {MYAPPNAME}

$ rhc env-set OPENSHIFT_MYSQL_DB_DBNAME=tweetblog --app mywebapp

rhc tail -a {APPNAME}

Advertisements