For local testing with SSH tunnel ssh -L 27017:mongodb05.nersc.gov:27017 dtn-nersc -N to NERSC MongoDB, I need to patch right now:
diff --git a/dashboard/utils.py b/dashboard/utils.py
index ba9971f6b..5fcc4a961 100644
--- a/dashboard/utils.py
+++ b/dashboard/utils.py
@@ -123,7 +123,7 @@ def load_data(db, experiment, date_range=None):
def load_database(config_dict):
print("Loading database...")
# read database information from configuration dictionary
- db_host = config_dict["database"]["host"]
+ db_host = "127.0.0.1" # config_dict["database"]["host"]
db_port = config_dict["database"]["port"]
db_name = config_dict["database"]["name"]
db_auth = config_dict["database"]["auth"]
because export SF_DB_HOST='127.0.0.1' is over-written by config files of the experiment.
We need to reintroduce this env var check again, to enable remote development (offsite from LBNL campus).
For local testing with SSH tunnel
ssh -L 27017:mongodb05.nersc.gov:27017 dtn-nersc -Nto NERSC MongoDB, I need to patch right now:because
export SF_DB_HOST='127.0.0.1'is over-written by config files of the experiment.We need to reintroduce this env var check again, to enable remote development (offsite from LBNL campus).