Skip to content

Commit

Permalink
add pg.default to database
Browse files Browse the repository at this point in the history
  • Loading branch information
leightkt committed Mar 11, 2021
1 parent d715aee commit f04bbd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node_modules
node_modules
2 changes: 2 additions & 0 deletions database/Database.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const config = require('../knexfile')[process.env.NODE_ENV || 'development']
// const config = require('../knexfile').development
const pg = require('pg')
pg.defaults.ssl = true
const knex = require('knex')
const database = knex(config)

Expand Down
12 changes: 0 additions & 12 deletions knexfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ module.exports = {
},

production: {
type: "postgres",
host: "ec2-3-222-11-129.compute-1.amazonaws.com",
port: "5432",
username: "nlkzimsxtnwodh",
password: "ab1453c651956f86341cfc13e8fc25d61894de57675c0ac4da4ca9a431ce1021",
database: "dbjfv6jdkmfiqs",
ssl: true,
extra: {
ssl: {
rejectUnauthorized: false,
}
},
client: "pg",
connection: process.env.DATABASE_URL,
migrations: {
Expand Down

0 comments on commit f04bbd3

Please sign in to comment.