Skip to content

Commit

Permalink
db hell
Browse files Browse the repository at this point in the history
  • Loading branch information
iznaut committed Nov 1, 2024
1 parent cf4bb8d commit 036a5dc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
3 changes: 1 addition & 2 deletions db.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const pool = new Pool({
password: process.env.PGPASSWORD,
host: process.env.PGHOST,
port: process.env.PGPORT, // default Postgres port
database: process.env.PGDATABASE,
ssl: true
database: process.env.PGDATABASE
});

module.exports = {
Expand Down
2 changes: 0 additions & 2 deletions helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,3 @@ exports.dbSyncDreamTable = async () => {
});
}
}

exports.dbSyncDreamTable()
3 changes: 3 additions & 0 deletions init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const helper = require('./helper')

helper.dbSyncDreamTable()
11 changes: 11 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
"start": "node index.js",
"init-db": "node init.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@logtail/js": "^0.5.1",
"@super-puzzlescript/puzzlescript": "^0.1.0",
"bitsy-boilerplate": "github:seleb/bitsy-boilerplate",
"dotenv": "^16.4.5",
"express": "^4.17.3",
Expand Down

0 comments on commit 036a5dc

Please sign in to comment.