Skip to content

Commit

Permalink
Remoção do config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Nov 14, 2024
1 parent 6706ef2 commit b04fe8e
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 66 deletions.
22 changes: 11 additions & 11 deletions UPDATE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,20 @@ sleep 2

cd ../frontend

sleep 2
# sleep 2

echo " " | tee -a "$LOG_FILE"
echo "VERIFICANDO O CONFIG.JSON" | tee -a "$LOG_FILE"
echo " " | tee -a "$LOG_FILE"
# echo " " | tee -a "$LOG_FILE"
# echo "VERIFICANDO O CONFIG.JSON" | tee -a "$LOG_FILE"
# echo " " | tee -a "$LOG_FILE"

sleep 2
# sleep 2

if [ ! -e src/config.json ]; then
echo "Criando o arquivo config.json" | tee -a "$LOG_FILE"
cp src/config.json.example src/config.json | tee -a "$LOG_FILE"
else
echo "O arquivo config.json já existe" | tee -a "$LOG_FILE"
fi
# if [ ! -e src/config.json ]; then
# echo "Criando o arquivo config.json" | tee -a "$LOG_FILE"
# cp src/config.json.example src/config.json | tee -a "$LOG_FILE"
# else
# echo "O arquivo config.json já existe" | tee -a "$LOG_FILE"
# fi

sleep 2

Expand Down
14 changes: 4 additions & 10 deletions docs/INSTALL_VPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,31 +323,25 @@ PORT=3333
nano .env
```

### 8.5 Criando o arquivo config.json baseado no exemplo

```
cp src/config.json.example src/config.json
```

### 8.6 Compilando o frontend
### 8.5 Compilando o frontend

```
npm run build
```

### 8.7 Iniciando o frontend com PM2
### 8.6 Iniciando o frontend com PM2

```
pm2 start server.js --name Press-Ticket-frontend
```

### 8.8 Salvando os serviços iniciados pelo PM2
### 8.7 Salvando os serviços iniciados pelo PM2

```
pm2 save
```

### 8.9 Listar os serviços iniciados pelo PM2
### 8.8 Listar os serviços iniciados pelo PM2

```
pm2 list
Expand Down
5 changes: 2 additions & 3 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
/.pnp
.pnp.js


# testing
/coverage

# production
/build
/dist
/src/config.json
/public/assets

# misc
.DS_Store
Expand All @@ -27,4 +26,4 @@ yarn-debug.log*
yarn-error.log*
package-lock.json
yarn.lock
build
build
Binary file removed frontend/src/assets/Logo_circle.png
Binary file not shown.
Binary file removed frontend/src/assets/logo-dash.png
Binary file not shown.
Binary file removed frontend/src/assets/logo.png
Binary file not shown.
42 changes: 0 additions & 42 deletions frontend/src/config.json.example

This file was deleted.

0 comments on commit b04fe8e

Please sign in to comment.