mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-09 04:36:02 -05:00
update readme getting started with db instructions
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
BIN
prisma/dump.sql
BIN
prisma/dump.sql
Binary file not shown.
Reference in New Issue
Block a user