Skip to content

Commit

Permalink
Make DB Host configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanco committed Feb 5, 2024
1 parent 6495a17 commit 7bf8f22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/claim-backend/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BACKEND_PORT=3000
DB_PORT=5432
DB_HOST=127.0.0.1
DB_DATABASE=claim-backend
DB_USERNAME=claim-backend
DB_PASSWORD=let-me-in
Expand Down
1 change: 1 addition & 0 deletions packages/claim-backend/src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class DB {
this.models = [Signature];
this.sequelize = new Sequelize({
dialect: 'postgres',
host: process.env.DB_HOST || '127.0.0.1',
database: process.env.DB_DATABASE || 'claim-backend',
username: process.env.DB_USERNAME || 'claim-backend',
password: process.env.DB_PASSWORD || 'let-me-in',
Expand Down

0 comments on commit 7bf8f22

Please sign in to comment.