From 710a89c4a2a4d8201b7a37c902725e22aa686cbb Mon Sep 17 00:00:00 2001 From: Patrick Ryan Date: Mon, 15 Apr 2019 13:46:58 -0500 Subject: [PATCH] moved back to aws db --- database/index.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/database/index.js b/database/index.js index 4fa27d6..d2d6a84 100644 --- a/database/index.js +++ b/database/index.js @@ -10,17 +10,17 @@ const host = process.env.host|| "localhost"; const port = process.env.port || '3000' const dbName = process.env.dbName || 'lead_the_deal' -const sequelize = new Sequelize('lead_the_deal', username, password, { - dialect: 'mysql', - host: host, -}); +// const sequelize = new Sequelize('lead_the_deal', username, password, { +// dialect: 'mysql', +// host: host, +// }); -// const sequelize = new Sequelize('lead_the_deal', 'leadthedeal', process.env.AWSPASS, { -// host: 'leadthedeal.co5uhag2jtpo.us-east-2.rds.amazonaws.com', -// port: 3306, -// dialect: 'mysql' -// }); +const sequelize = new Sequelize('lead_the_deal', 'leadthedeal', process.env.AWSPASS, { + host: 'leadthedeal.co5uhag2jtpo.us-east-2.rds.amazonaws.com', + port: 3306, + dialect: 'mysql' +}); /////////////////// /////MODELS ///////