added more config environments

This commit is contained in:
Dobromir Popov
2021-08-22 23:56:06 +03:00
parent 6c7912b915
commit f6a7790e92
3 changed files with 25 additions and 16 deletions

View File

@@ -3,5 +3,10 @@ npm-debug.log
docs docs
mysql.txt mysql.txt
test.js test.js
# another container
mysql mysql
# custom
.vscode
cert

View File

@@ -1,12 +1,27 @@
{ {
"development": { "development": {
"username": "root", "username": "iot",
"database": "iot", "database": "iot",
"password": "localdevdobri",
"host": "127.0.0.1", "host": "127.0.0.1",
"port":"3306", "port":"3306",
"dialect": "mysql", "dialect": "mysql",
"operatorsAliases": false, "operatorsAliases": false,
"logFile":"/dht.log" "logFile":"/dht.log",
"gardenIP":"192.168.0.187",
"mqttIP": "192.168.0.10"
},
"mitko": {
"host": "node-mysql",
"database": "iot",
"username": "root",
"password": "mitko2021",
"port":"3306",
"dialect": "mysql",
"operatorsAliases": false,
"logFile":"/dht.log",
"gardenIP":"192.168.0.187",
"mqttIP": "192.168.0.10"
}, },
"production": { "production": {
"username": "iot", "username": "iot",
@@ -16,6 +31,8 @@
"port":"3306", "port":"3306",
"dialect": "mysql", "dialect": "mysql",
"operatorsAliases": false, "operatorsAliases": false,
"logFile":"/var/www/dht.log" "logFile":"/var/www/dht.log",
"gardenIP":"192.168.0.187",
"mqttIP": "192.168.0.10"
} }
} }

View File

@@ -1,13 +0,0 @@
module.exports = {
GardenIP: '192.168.0.187',
AcIP : '192.168.1.143',
HouseDhtIP : '192.168.1.126',
HomeControllerMQTT : '192.168.0.10',//GW02
localPath : "",
foo: function () {
// whatever
},
bar: function () {
// whatever
}
};