Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Misc] Update README.md #364

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ yarn dev
npx prisma migrate deploy
```

4. Seed database
4. Reset and seed database (ensure node is v14.17.0 or else it will stall)

```bash
npx prisma db seed --preview-feature
npx prisma migrate reset
```

5. Verify database
Expand All @@ -84,6 +84,14 @@ npx prisma db seed --preview-feature
docker exec -it rcd_db bash -c "psql -U postgres -d rcd"
```

## Migrations

To create a new migration (after making changes to the Prisma schema):

```bash
npx prisma migrate dev --name <migration-name> --create-only
```

## Run locally (Heroku)

Duplicate `.env.sample` to `.env` and configure environment variables.
Expand Down
Loading