diff --git a/INSTALL.md b/INSTALL.md index 3bb54006..43e1001a 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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 @@ -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 @@ -182,4 +183,9 @@ sudo snap install --classic certbot sudo certbot --nginx -============================================================== \ No newline at end of file +============================================================== + +### Usuário padrão para acesso + +* User: admin@pypress.com.br +* Password: admin \ No newline at end of file diff --git a/backend/src/server.ts b/backend/src/server.ts index 001a66e8..566a9ae1 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -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); diff --git a/frontend/server.js b/frontend/server.js index 1115c500..93123472 100644 --- a/frontend/server.js +++ b/frontend/server.js @@ -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); \ No newline at end of file diff --git a/frontend/src/pages/Connections/index.js b/frontend/src/pages/Connections/index.js index 27c203b2..1f70f316 100644 --- a/frontend/src/pages/Connections/index.js +++ b/frontend/src/pages/Connections/index.js @@ -378,7 +378,7 @@ const Connections = () => { whatsApps.map(whatsApp => ( - {whatsApp.whatsAppId} + {whatsApp.id} {whatsApp.name}