Skip to content

Commit

Permalink
Merge pull request #60 from patrickry07/aws_db
Browse files Browse the repository at this point in the history
moved back to aws db
  • Loading branch information
patrickry07 authored Apr 15, 2019
2 parents df38dd2 + 710a89c commit f6e24bb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions database/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ///////
Expand Down

0 comments on commit f6e24bb

Please sign in to comment.