Skip to content

Commit

Permalink
update data sourcE
Browse files Browse the repository at this point in the history
  • Loading branch information
manuphatak committed May 21, 2016
1 parent 9b728ff commit 50f0520
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"loopback": "2.28.0",
"loopback-boot": "2.18.1",
"loopback-component-explorer": "2.5.0",
"loopback-connector-mysql": "strongloop/loopback-connector-mysql#master",
"loopback-connector-mysql": "2.2.1",
"loopback-datasource-juggler": "2.46.0",
"morgan": "1.7.0"
},
Expand Down
8 changes: 6 additions & 2 deletions server/datasources.development.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"sql": {
"host": "localhost",
"port": 3306,
"database": "sumo-survey",
"password": "secret",
"name": "sql",
"connector": "mysql",
"url":"mysql://sumo-survey:secret@localhost:3306/sumo-survey"
"user": "sumo-survey",
"connector": "mysql"
}
}
7 changes: 6 additions & 1 deletion server/datasources.production.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"sql": {
"name": "sql",
"connector": "mysql",
"url": "${DB_URL}"
"host": "${DB_HOST}",
"port": "${DB_PORT}",
"database": "${DB_NAME}",
"password": "${DB_PW}",
"user": "${DB_USER}",
"connectionLimit": "${DB_CONNECTION_LIMIT}"
}
}

0 comments on commit 50f0520

Please sign in to comment.