update readme getting started with db instructions

This commit is contained in:
Sendou
2021-02-12 15:07:26 +02:00
parent 26d4dfd50d
commit ee5591e87d
2 changed files with 2 additions and 1 deletions

View File

@@ -52,7 +52,8 @@ DATABASE_URL=postgresql://sendou@localhost:5432
_You can see [Prisma's guide on how to set up a PostgreSQL database running locally](https://www.prisma.io/dataguide/postgresql/setting-up-a-local-postgresql-database) for more info._
6. Once you have a database running run `pg_restore -d 'postgresql://sendou@localhost:5432' --jobs 4 dump.sql --clean` (replace the connection string with your own) in the `prisma` folder (assuming your database name is `postgres`). This formats the database with the correct tables and fills it with real data dumped from the production site.
6. Use `npm run migrate` to get the database formatted with the right tables.
7. There should be a seeding script but this doesn't exist yet. If anyone is interested in contributing this is probably a good starting point (see issue #197).
### Enable logging in

Binary file not shown.