From 263097683042051a8c2e387dbfa519c734f2d004 Mon Sep 17 00:00:00 2001 From: Robson Tenorio Date: Fri, 26 Aug 2022 11:46:59 -0300 Subject: [PATCH] =?UTF-8?q?Inclus=C3=A3o=20da=20vari=C3=A1vel=20DB=5FTIMEZ?= =?UTF-8?q?ONE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/.env.example | 1 + backend/src/config/database.ts | 2 +- docs/INSTALL_VPS.md | 9 +++++---- docs/INSTALL_localhost.md | 1 + 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/backend/.env.example b/backend/.env.example index 62b90428..f91ddb28 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -7,6 +7,7 @@ CHROME_BIN=C:\Program Files\Google\Chrome\Application\chrome.exe DB_DIALECT=mysql DB_HOST=localhost +DB_TIMEZONE=-03:00 DB_USER=root DB_PASS= DB_NAME=pressticket diff --git a/backend/src/config/database.ts b/backend/src/config/database.ts index d9553747..f53b24b6 100644 --- a/backend/src/config/database.ts +++ b/backend/src/config/database.ts @@ -6,7 +6,7 @@ module.exports = { collate: "utf8mb4_bin" }, dialect: process.env.DB_DIALECT || "mysql", - timezone: "-03:00", + timezone: process.env.DB_TIMEZONE || "-03:00", host: process.env.DB_HOST, database: process.env.DB_NAME, username: process.env.DB_USER, diff --git a/docs/INSTALL_VPS.md b/docs/INSTALL_VPS.md index a07d54ab..a12cd692 100644 --- a/docs/INSTALL_VPS.md +++ b/docs/INSTALL_VPS.md @@ -118,7 +118,8 @@ PORT=8080 PROXY_PORT=443 CHROME_BIN=/usr/bin/google-chrome-stable DB_DIALECT=mysql -DB_HOST=localhost +DB_HOST=localhost +DB_TIMEZONE=-03:00 DB_USER=root DB_PASS= DB_NAME=pressticket @@ -188,9 +189,9 @@ JWT_REFRESH_SECRET= ```nano .env``` 45. -```REACT_APP_BACKEND_URL=https://back.pressticket.com.br``` -```REACT_APP_HOURS_CLOSE_TICKETS_AUTO=``` -```SERVER_PORT=3333``` +```REACT_APP_BACKEND_URL=https://back.pressticket.com.br``` +```REACT_APP_HOURS_CLOSE_TICKETS_AUTO=``` +```SERVER_PORT=3333``` 46. Buildando o frontend diff --git a/docs/INSTALL_localhost.md b/docs/INSTALL_localhost.md index a008f9e9..0ef30825 100644 --- a/docs/INSTALL_localhost.md +++ b/docs/INSTALL_localhost.md @@ -29,6 +29,7 @@ CHROME_BIN=C:\Program Files\Google\Chrome\Application\chrome.exe DB_DIALECT=mysql DB_HOST=localhost +DB_TIMEZONE=-03:00 DB_USER=root DB_PASS= DB_NAME=pressticket