Skip to content

Commit

Permalink
Correção da variável da porta do Frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Dec 24, 2022
1 parent 9118659 commit 0bcc18c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/INSTALL_VPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ nano .env
```bash
REACT_APP_BACKEND_URL=https://back.pressticket.com.br
REACT_APP_HOURS_CLOSE_TICKETS_AUTO=
SERVER_PORT=3333
PORT=3333
```

46. Criar o arquivo config.json com base no config.json.example
Expand Down
3 changes: 2 additions & 1 deletion docs/INSTALL_localhost.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cd Press-Ticket/backend
```bash
NODE_ENV=
BACKEND_URL=http://localhost
FRONTEND_URL=http://localhost:3000
FRONTEND_URL=http://localhost:3333
PORT=8080
PROXY_PORT=8080
CHROME_BIN=C:\Program Files\Google\Chrome\Application\chrome.exe
Expand Down Expand Up @@ -91,6 +91,7 @@ cd Press-Ticket/frontend
```bash
REACT_APP_BACKEND_URL=http://localhost:8080
REACT_APP_HOURS_CLOSE_TICKETS_AUTO=
PORT=3333
```

14. Instalar as dependências
Expand Down
2 changes: 1 addition & 1 deletion frontend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ app.get("/*", function (req, res) {
res.sendFile(path.join(__dirname, "build", "index.html"));
});

app.listen(process.env.SERVER_PORT || 3333);
app.listen(process.env.PORT || 3333);

0 comments on commit 0bcc18c

Please sign in to comment.