Skip to content

Commit

Permalink
Minor fixes for sample.fabric.py
Browse files Browse the repository at this point in the history
  • Loading branch information
asura-asp committed Feb 5, 2016
1 parent 4166245 commit 6cec488
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/deploy/sample.fabric.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
$ cp sample.fabric.py production/fabric.py
"""


def get_settings(overrides={}):
"""Returns a dictionary with settings for Fabric.
Allow to override some settings through a parameter.
Expand All @@ -34,7 +35,7 @@ def get_settings(overrides={}):
SETTINGS['db_user'] = 'db_user'
SETTINGS['db_pass'] = 'db_pass'
SETTINGS['db_host'] = 'db_host'
SETTINGS['db_name'] = overrides.get('db_name', 'my_db_name')
SETTINGS['db_name'] = 'db_name'

# =========================================================================
# File storage
Expand All @@ -45,7 +46,7 @@ def get_settings(overrides={}):
# =========================================================================
# REDCap
# =========================================================================
SETTINGS['redcap_api_url'] = 'https:/redcap.example.com/redcap/api/'
SETTINGS['redcap_api_url'] = 'https://redcap.example.com/redcap/api/'
SETTINGS['redcap_api_token'] = ''
SETTINGS['redcap_demographics_subject_id'] = 'subject_id'

Expand Down

0 comments on commit 6cec488

Please sign in to comment.