Permalink
Browse files

Typeless changes.

  • Loading branch information...
1 parent 04ca4a6 commit 2205c15fd1cb371f5f86ddb1611732ca76a435b4 Mrunal Patel committed Oct 4, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 README
View
11 README
@@ -21,17 +21,18 @@ OpenShift provides several environment variables to reference for ease
of use. The following list are some common variables but far from exhaustive:
os.environ['OPENSHIFT_APP_NAME'] - Application name
- os.environ['OPENSHIFT_GEAR_DIR'] - Application dir
os.environ['OPENSHIFT_DATA_DIR'] - For persistent storage (between pushes)
os.environ['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:
- os.environ['OPENSHIFT_DB_HOST'] - DB host
- os.environ['OPENSHIFT_DB_PORT'] - DB Port
- os.environ['OPENSHIFT_DB_USERNAME'] - DB Username
- os.environ['OPENSHIFT_DB_PASSWORD'] - DB Password
+If you embed MySQL, then:
+
+ os.environ['OPENSHIFT_MYSQL_DB_HOST'] - DB host
+ os.environ['OPENSHIFT_MYSQL_DB_PORT'] - DB Port
+ os.environ['OPENSHIFT_MYSQL_DB_USERNAME'] - DB Username
+ os.environ['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 2205c15

Please sign in to comment.