-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
113 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
#!/bin/bash | ||
echo " " | ||
echo "ATUALIZANDO PARA A VERSÃO MAIS RECENTE DO PRESS TICKET!" | ||
echo " " | ||
sleep 2 | ||
|
||
echo " " | ||
echo "BAIXANDO AS ATUALIZAÇÕES" | ||
echo " " | ||
|
||
sleep 2 | ||
|
||
git reset --hard | ||
git pull | ||
|
||
echo " " | ||
echo "ACESSANDO O BACKEND" | ||
echo " " | ||
|
||
sleep 2 | ||
|
||
cd backend | ||
|
||
echo " " | ||
echo "ATUALIZANDO OS ARQUIVOS DO BACKEND" | ||
echo " " | ||
|
||
sleep 2 | ||
|
||
sudo rm -rf node_modules | ||
npm install | ||
sudo rm -rf dist | ||
npm run build | ||
|
||
echo " " | ||
echo "EXECUTANDO O MIGRATE E SEED" | ||
echo " " | ||
|
||
sleep 2 | ||
|
||
npx sequelize db:migrate | ||
npx sequelize db:seed | ||
|
||
echo " " | ||
echo "ACESSANDO O FRONTEND" | ||
echo " " | ||
|
||
sleep 2 | ||
|
||
cd ../frontend | ||
|
||
echo " " | ||
echo "ATUALIZANDO OS ARQUIVOS DO FRONTEND" | ||
echo " " | ||
|
||
sleep 2 | ||
|
||
sudo rm -rf node_modules | ||
npm install | ||
rm -rf build | ||
npm run build | ||
|
||
echo " " | ||
echo "RESTART PM2" | ||
echo " " | ||
|
||
sleep 2 | ||
|
||
pm2 restart all | ||
|
||
echo " " | ||
echo "PRESS TICKET ATUALIZADO COM SUCESSO!!!" | ||
echo " " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
NODE_ENV= | ||
BACKEND_URL=http://localhost | ||
FRONTEND_URL=http://localhost:3000 | ||
PROXY_PORT=8080 | ||
PORT=8080 | ||
NODE_ENV= | ||
BACKEND_URL=http://localhost | ||
FRONTEND_URL=http://localhost:3000 | ||
PORT=8080 | ||
PROXY_PORT=8080 | ||
CHROME_BIN=C:\Program Files\Google\Chrome\Application\chrome.exe | ||
|
||
DB_DIALECT= | ||
DB_HOST= | ||
DB_USER= | ||
DB_PASS= | ||
DB_NAME= | ||
DB_DIALECT=mysql | ||
DB_HOST=localhost | ||
DB_USER=root | ||
DB_PASS= | ||
DB_NAME=pressticket | ||
|
||
JWT_SECRET= | ||
JWT_REFRESH_SECRET= | ||
USER_LIMIT=3 | ||
CONNECTIONS_LIMIT=1 | ||
|
||
JWT_SECRET=5g1yk7pD9q3YL0iBEuUlPwOiWLj3I5tK+/rhHm+jgdE= | ||
JWT_REFRESH_SECRET=F2c8gag5nvqQkBOmOu5dWkK+gqZnjPUzHmx7S2tWkvs= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
REACT_APP_BACKEND_URL = http://localhost:8080/ | ||
REACT_APP_HOURS_CLOSE_TICKETS_AUTO = | ||
SERVER_PORT = 3333 | ||
REACT_APP_BACKEND_URL=http://localhost:8080 | ||
REACT_APP_HOURS_CLOSE_TICKETS_AUTO= | ||
SERVER_PORT=3333 |