Skip to content

Commit

Permalink
Correções 17/03/2022
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Mar 17, 2022
1 parent e7d3192 commit a6a148f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
12 changes: 9 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ DB_DIALECT=mysql
DB_HOST=localhost
DB_USER=root
DB_PASS=
DB_NAME=pressticket
DB_NAME=pressticket
USER_LIMIT=3
CONNECTIONS_LIMIT=1
JWT_SECRET=saKPKKOxzczxcnscndcssccdsddngfsacxcs@Ers21vhhghee
Expand Down Expand Up @@ -104,7 +104,8 @@ npm install

nano .env

REACT_APP_BACKEND_URL = https://back.pypress.com.br
REACT_APP_BACKEND_URL = https://back.pypress.com.br
SERVER_PORT=3333

npm run build

Expand Down Expand Up @@ -182,4 +183,9 @@ sudo snap install --classic certbot

sudo certbot --nginx

==============================================================
==============================================================

### Usuário padrão para acesso

* User: admin@pypress.com.br
* Password: admin
2 changes: 1 addition & 1 deletion backend/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var options = {
app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerDocs, options));

const server = app.listen(process.env.PORT, () => {
logger.info(`Server started on port: ${process.env.PORT}`);
logger.info(`Servidor iniciado na porta: ${process.env.PORT}`);
});

initIO(server);
Expand Down
4 changes: 3 additions & 1 deletion frontend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
const express = require("express");
const path = require("path");
const app = express();

app.use(express.static(path.join(__dirname, "build")));
app.get("/*", function (req, res) {
res.sendFile(path.join(__dirname, "build", "index.html"));
});
app.listen(3334);

app.listen(process.env.SERVER_PORT || 3333);
2 changes: 1 addition & 1 deletion frontend/src/pages/Connections/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ const Connections = () => {
whatsApps.map(whatsApp => (
<TableRow key={whatsApp.id}>
<TableCell align="center">
{whatsApp.whatsAppId}
{whatsApp.id}
</TableCell>
<TableCell align="center">
{whatsApp.name}
Expand Down

0 comments on commit a6a148f

Please sign in to comment.