mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Add 'Deploy to Heroku' functionality.
This commit is contained in:
@@ -5,6 +5,8 @@ cgm-remote-monitor (a.k.a. NightScout)
|
||||
[](https://david-dm.org/nightscout/cgm-remote-monitor)
|
||||
[](https://gitter.im/nightscout/public)
|
||||
|
||||
[](https://heroku.com/deploy)
|
||||
|
||||
This acts as a web-based CGM (Continuous Glucose Montinor) to allow
|
||||
multiple caregivers to remotely view a patients glucose data in
|
||||
realtime. The server reads a MongoDB which is intended to be data
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "CGM Remote Monitor",
|
||||
"repository": "https://github.com/nightscout/cgm-remote-monitor",
|
||||
"env": {
|
||||
"MONGO_COLLECTION": {
|
||||
"description": "The mongo collection to connect to.",
|
||||
"value": "nightscout"
|
||||
}
|
||||
},
|
||||
"addons": [
|
||||
"mongolab"
|
||||
]
|
||||
}
|
||||
@@ -23,8 +23,8 @@ function config ( ) {
|
||||
env.name = software.name;
|
||||
env.DISPLAY_UNITS = process.env.DISPLAY_UNITS || 'mg/dl';
|
||||
env.PORT = process.env.PORT || 1337;
|
||||
env.mongo = process.env.MONGO_CONNECTION || process.env.CUSTOMCONNSTR_mongo;
|
||||
env.mongo_collection = process.env.CUSTOMCONNSTR_mongo_collection || 'entries';
|
||||
env.mongo = process.env.MONGO_CONNECTION || process.env.CUSTOMCONNSTR_mongo || process.env.MONGOLAB_URI;
|
||||
env.mongo_collection = process.env.CUSTOMCONNSTR_mongo_collection || process.env.MONGO_COLLECTION || 'entries';
|
||||
env.settings_collection = process.env.CUSTOMCONNSTR_mongo_settings_collection || 'settings';
|
||||
var shasum = crypto.createHash('sha1');
|
||||
var useSecret = (process.env.API_SECRET && process.env.API_SECRET.length > 0);
|
||||
|
||||
Reference in New Issue
Block a user