{"push_id":1054075306,"size":1,"distinct_size":1,"ref":"refs/heads/dynamic-config","head":"4a815deb27e66ca4c08eeccdc2bc8d63892d8df3","before":"a68bf313a38eb47f284990a5f32cfddb7e8c5b8e","commits":[{"sha":"4a815deb27e66ca4c08eeccdc2bc8d63892d8df3","author":{"email":"9e9632a7737f416868d55b69b7abbc307ac3bd62@ca.ibm.com","name":"David Cheung"},"message":"Dynamic datasources.json from ENV and config.json\n\nLet environment variables override configuration set by config.json\nand/or app.set()\n\nBehavior changes\n- datasources.json now support dynamic configuration through\n  env-vars and config.json\n- component-config.json will first consider env-var\n  for resolving dynamic conf, then fallback to config.json\n- middleware.json will first consider env-var for resolving\n  dynamic conf, then fallback to config.json\n- for all the dynamic confg, unresolved conf will return as `undefined`\n\nExample:\n\nConsider the following server/datasources.json\n```\n{\n  \"mysql\" : {\n    \"name\" : \"mysql_db\",\n    \"host\" : \"${MYSQL_DB_HOST}\",\n    ...\n  }\n}\n```\n\nNow you can provide the parameter through\nan environment variable:\n\n```\n$ MYSQL_DB_HOST=127.0.0.1 node .\n```\n\nor you can set the value in server/config.json\n\n```\n{\n  \"MYSQL_DB_HOST\": \"127.0.0.1\"\n}\n```","distinct":true,"url":"https://api.github.com/repos/strongloop/loopback-boot/commits/4a815deb27e66ca4c08eeccdc2bc8d63892d8df3"}]}