chore: updated README to insert DB_DIALECT env

This commit is contained in:
canove
2020-10-20 08:32:14 -03:00
parent 1c8f86fd44
commit 20adc6a11e
2 changed files with 6 additions and 3 deletions

View File

@@ -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=

View File

@@ -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,