mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
chore: updated README to insert DB_DIALECT env
This commit is contained in:
@@ -80,12 +80,14 @@ nano .env
|
||||
Fill `.env` file with environment variables:
|
||||
|
||||
```bash
|
||||
NODE_ENV=DEVELOPMENT #it helps on debugging
|
||||
NODE_ENV=DEVELOPMENT #it helps on debugging
|
||||
BACKEND_URL=http://localhost
|
||||
FRONTEND_URL=https://localhost:3000
|
||||
PROXY_PORT=8080
|
||||
PORT=8080
|
||||
|
||||
DB_HOST= #DB host IP, usually localhost
|
||||
DB_HOST= #DB host IP, usually localhost
|
||||
DB_DIALECT=
|
||||
DB_USER=
|
||||
DB_PASS=
|
||||
DB_NAME=
|
||||
@@ -199,6 +201,7 @@ PROXY_PORT=443 #USE NGINX REVERSE PROXY PORT HERE, WE
|
||||
PORT=8080
|
||||
|
||||
DB_HOST=localhost
|
||||
DB_DIALECT=
|
||||
DB_USER=
|
||||
DB_PASS=
|
||||
DB_NAME=
|
||||
|
||||
@@ -5,7 +5,7 @@ module.exports = {
|
||||
charset: "utf8mb4",
|
||||
collate: "utf8mb4_bin"
|
||||
},
|
||||
dialect: process.env.DB_DIALECT,
|
||||
dialect: process.env.DB_DIALECT || "mysql",
|
||||
timezone: "-03:00",
|
||||
host: process.env.DB_HOST,
|
||||
database: process.env.DB_NAME,
|
||||
|
||||
Reference in New Issue
Block a user