Permalink
Browse files

Typeless changes.

  • Loading branch information...
1 parent 00b686a commit 33e63693faec07b40eff816354b0fd36f9440f51 @mrunalp mrunalp committed Oct 5, 2012
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.

0 comments on commit 33e6369

Please sign in to comment.