Skip to content
Browse files

OPENSHIFT_APP -> OPENSHIFT_GEAR

  • Loading branch information...
1 parent 1f783d3 commit 5183d7cadaf38efe75192cbc0a1bcde535113d4d @danmcp danmcp committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 README
  2. +2 −2 wsgi/twtapp.py
View
2 README
@@ -21,7 +21,7 @@ OpenShift Express 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_APP_DIR'] - Application dir
+ 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)
View
4 wsgi/twtapp.py
@@ -88,7 +88,7 @@ def post_find_by_id(post_id):
reserved_usernames = 'follow home signup login logout post static DEBUG'
bottle.TEMPLATE_PATH.append(
- os.path.join(os.environ['OPENSHIFT_APP_DIR'],
+ os.path.join(os.environ['OPENSHIFT_GEAR_DIR'],
'runtime/repo/wsgi/views/'))
def get_session():
@@ -262,7 +262,7 @@ def dbg_env():
@bottle.route('/static/:filename')
def static_file(filename):
bottle.send_file(filename,
- root= os.path.join(os.environ['OPENSHIFT_APP_DIR'],
+ root= os.path.join(os.environ['OPENSHIFT_GEAR_DIR'],
'repo/wsgi/static/'))
application = bottle.default_app()

0 comments on commit 5183d7c

Please sign in to comment.
Something went wrong with that request. Please try again.