mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
task: clean repo root
This change seeks to continue tidying up the repo. * The database_configuration.json file is not used and has not been used since the project was published on github. We remove the ability to look at files inside the source tree for database credentials. * Move example-profiles.md to the relevant documentation for plugins area and update the link to match.
This commit is contained in:
@@ -670,7 +670,7 @@ For remote overrides, the following extended settings must be configured:
|
||||
* `target_high` - Upper target for correction boluses.
|
||||
* `target_low` - Lower target for correction boluses.
|
||||
|
||||
Some example profiles are [here](example-profiles.md).
|
||||
Some example profiles are [here](docs/plugins/example-profiles.md).
|
||||
|
||||
## Setting environment variables
|
||||
Easy to emulate on the commandline:
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"url": null,
|
||||
"collection": null
|
||||
}
|
||||
+1
-4
@@ -130,10 +130,7 @@ function setStorage () {
|
||||
env.food_collection = readENV('MONGO_FOOD_COLLECTION', 'food');
|
||||
env.activity_collection = readENV('MONGO_ACTIVITY_COLLECTION', 'activity');
|
||||
|
||||
// TODO: clean up a bit
|
||||
// Some people prefer to use a json configuration file instead.
|
||||
// This allows a provided json config to override environment variables
|
||||
var DB = require('../../database_configuration.json')
|
||||
var DB = { url: null, collection: null }
|
||||
, DB_URL = DB.url ? DB.url : env.storageURI
|
||||
, DB_COLLECTION = DB.collection ? DB.collection : env.entries_collection;
|
||||
env.storageURI = DB_URL;
|
||||
|
||||
Reference in New Issue
Block a user