diff --git a/config/config.js b/config/config.js index c371d3c9184b50d62f895f077ad0e9ce14d2d9cf..5c0c2cfc56bd3d8e619413a1928de3eac06e9c9f 100644 --- a/config/config.js +++ b/config/config.js @@ -21,6 +21,7 @@ module.exports = { password: 'Stuttgart2019', // DB password port: 3306, // MySQL port dbUser: 'userdb', // User DB + host_project: 'm4lab.hft-stuttgart.de', // DB host project db dbProject: 'projectDB' // Project DB }, mailer: { diff --git a/routes/dbconn.js b/routes/dbconn.js index 0c3c67c4daf536439d2ab14ba8e09f711ef72c92..834eb1aaa465674e73190ffc8d8809b2d28c3274 100644 --- a/routes/dbconn.js +++ b/routes/dbconn.js @@ -51,7 +51,7 @@ var dbconn = function dbconn(query, values, next) { // ==== PROJECT DB CONNECTION ==== var projectConnection = mysql.createConnection({ - host: config.database.host, + host: config.database.host_project, user: config.database.user, password: config.database.password, port: config.database.port,