Skip to content

Commit

Permalink
Fazendo update do sequelize e pg pra ficar funcional com o Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
ghidorsi committed Mar 16, 2021
1 parent 4fd0006 commit e848408
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 85 deletions.
6 changes: 4 additions & 2 deletions database.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ module.exports = {
$like: Op.like
},
dialectOptions: {
ssl: process.env.DATABASE_URL ? true : false,
rejectUnauthorized: false
ssl: {
require: true,
rejectUnauthorized: false // <<<<<<< YOU NEED THIS
}
}
})
}
Expand Down
140 changes: 59 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"passport-google-oauth": "~1.0.0",
"passport-local": "~1.0.0",
"passport-twitter": "~1.0.4",
"pg": "^7.18.2",
"sequelize": "^4.44.4",
"pg": "^8.2.1",
"sequelize": "^5.21.10",
"winston": "^2.4.5"
},
"devDependencies": {
Expand Down

0 comments on commit e848408

Please sign in to comment.