Skip to content

Commit

Permalink
Use host in db connect
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielReid committed Aug 24, 2018
1 parent a0f2591 commit 45c4b7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions standalone-app/dbUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function buildGemtcDBUrl() {
function buildGemtcDBConnectionConfig() {
var env = process.env;
return {
host: env.DB_HOST,
user: env.GEMTC_DB_USERNAME,
database: env.GEMTC_DB,
password: env.GEMTC_DB_PASSWORD
Expand Down
1 change: 1 addition & 0 deletions test/dbUtilsSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('dbUtil', function() {
});
it('should build the connection config based on the environment variables', function() {
expect(dbUtil.connectionConfig).to.deep.equal({
host: process.env.DB_HOST,
user: process.env.GEMTC_DB_USERNAME,
database: process.env.GEMTC_DB,
password: process.env.GEMTC_DB_PASSWORD
Expand Down

0 comments on commit 45c4b7b

Please sign in to comment.