Skip to content

Commit

Permalink
Look for OPENSHIFT_APP_NAME instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed May 15, 2014
1 parent 2816dd5 commit fbc8f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tahrir_api/scripts/initializedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def main(argv=sys.argv):
here_dir = os.getcwd()

global_conf = None
if 'OPENSHIFT_MYSQL_DB_URL' in os.environ:
if 'OPENSHIFT_APP_NAME' in os.environ:
template = '{OPENSHIFT_MYSQL_DB_URL}{OPENSHIFT_APP_NAME}'
global_conf = {
'sqlalchemy.url': template.format(**os.environ)
Expand Down

0 comments on commit fbc8f8b

Please sign in to comment.