Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Typeless changes.

  • Loading branch information...
commit 33e63693faec07b40eff816354b0fd36f9440f51 1 parent 00b686a
Mrunal Patel authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 README
View
11 README
@@ -19,17 +19,18 @@ OpenShift provides several environment variables to reference for ease
of use. The following list are some common variables but far from exhaustive:
ENV['OPENSHIFT_APP_NAME'] - Application name
- ENV['OPENSHIFT_GEAR_DIR'] - Application dir
ENV['OPENSHIFT_DATA_DIR'] - For persistent storage (between pushes)
ENV['OPENSHIFT_TMP_DIR'] - Temp storage (unmodified files deleted after 10 days)
When embedding a database using 'rhc app cartridge add', you can reference environment
variables for username, host and password:
- ENV['OPENSHIFT_DB_HOST'] - DB host
- ENV['OPENSHIFT_DB_PORT'] - DB Port
- ENV['OPENSHIFT_DB_USERNAME'] - DB Username
- ENV['OPENSHIFT_DB_PASSWORD'] - DB Password
+If you embed MySQL, then:
+
+ ENV['OPENSHIFT_MYSQL_DB_HOST'] - DB host
+ ENV['OPENSHIFT_MYSQL_DB_PORT'] - DB Port
+ ENV['OPENSHIFT_MYSQL_DB_USERNAME'] - DB Username
+ ENV['OPENSHIFT_MYSQL_DB_PASSWORD'] - DB Password
To get a full list of environment variables, simply add a line in your
.openshift/action_hooks/build script that says "export" and push.
Please sign in to comment.
Something went wrong with that request. Please try again.