Skip to content

Commit

Permalink
fixed: deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
eustahc committed Jul 19, 2024
1 parent 0a91183 commit 104874b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ MONGODB_URL = ""

# SQL CONFIG
DATABASE_HOST = "localhost"
DATABASE_PORT = 3306
DATABASE_NAME = "zentinel"
DATABASE_USER = "root"
DATABASE_PASS = ""
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Production
name: Deployment

on:
push:
Expand Down
3 changes: 3 additions & 0 deletions config/sequelize.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,23 @@ module.exports = {
"password": process.env.DATABASE_PASS,
"database": process.env.DATABASE_NAME,
"host": process.env.DATABASE_HOST,
"port": process.env.DATABASE_PORT,
"dialect": process.env.DATABASE_TYPE
},
"test": {
"username": process.env.DATABASE_USER,
"password": process.env.DATABASE_PASS,
"database": process.env.DATABASE_NAME,
"host": process.env.DATABASE_HOST,
"port": process.env.DATABASE_PORT,
"dialect": process.env.DATABASE_TYPE
},
"production": {
"username": process.env.DATABASE_USER,
"password": process.env.DATABASE_PASS,
"database": process.env.DATABASE_NAME,
"host": process.env.DATABASE_HOST,
"port": process.env.DATABASE_PORT,
"dialect": process.env.DATABASE_TYPE
}
};

0 comments on commit 104874b

Please sign in to comment.