Add instructions for unning db-init.sh to contributing_local_development.md
This commit is contained in:
parent
a8ef9f8726
commit
7612a54894
1 changed files with 12 additions and 3 deletions
9
docs/src/contributing_local_development.md
vendored
9
docs/src/contributing_local_development.md
vendored
|
@ -6,6 +6,15 @@
|
||||||
|
|
||||||
#### Set up Postgres DB
|
#### Set up Postgres DB
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Start at the root of the Lemmy repository
|
||||||
|
|
||||||
|
cd server
|
||||||
|
./db-init.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
Or run the commands manually:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
psql -c "create user lemmy with password 'password' superuser;" -U postgres
|
psql -c "create user lemmy with password 'password' superuser;" -U postgres
|
||||||
psql -c 'create database lemmy with owner lemmy;' -U postgres
|
psql -c 'create database lemmy with owner lemmy;' -U postgres
|
||||||
|
|
Reference in a new issue