Skip to content

Commit

Permalink
chore: add script to migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-ols committed Dec 30, 2023
1 parent 276291f commit a6de994
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ Certifique-se de ter o Docker e o Docker Compose instalados em seu sistema.

```bash
# Clone o repositório
git clone https://github.com/seu-usuario/ibeer.git
git clone https://github.com/andre-ols/ibeer.git

# Navegue até o diretório do projeto
cd ibeer

# Inicie os contêineres Docker
docker-compose up -d
docker compose --env-file .env up -d --build --force-recreate app_dev

# Rode as migrations do Prisma
docker compose --env-file .env exec app_dev yarn prisma migrate reset
```

## Configuração
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"scripts": {
"dev": "yarn --env-file=.env nodemon",
"docker:up": "docker compose --env-file .env up -d --build --force-recreate app_dev",
"docker:migrate": "docker compose --env-file .env exec app_dev yarn prisma migrate reset",
"start": "node build/src/main.js",
"clean": "rimraf coverage build tmp",
"prebuild": "npm run lint",
Expand Down

0 comments on commit a6de994

Please sign in to comment.