Skip to content

Commit

Permalink
Inclusão da variável DB_TIMEZONE
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Aug 26, 2022
1 parent e500760 commit 2630976
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/src/config/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 5 additions & 4 deletions docs/INSTALL_VPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions docs/INSTALL_localhost.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2630976

Please sign in to comment.