mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 20:31:19 +00:00
Add instructions for unning db-init.sh to contributing_local_development.md
This commit is contained in:
parent
da6cdb7c26
commit
12c7633380
1 changed files with 12 additions and 3 deletions
15
docs/src/contributing_local_development.md
vendored
15
docs/src/contributing_local_development.md
vendored
|
@ -7,9 +7,18 @@
|
|||
#### Set up Postgres DB
|
||||
|
||||
```bash
|
||||
psql -c "create user lemmy with password 'password' superuser;" -U postgres
|
||||
psql -c 'create database lemmy with owner lemmy;' -U postgres
|
||||
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
||||
# Start at the root of the Lemmy repository
|
||||
|
||||
cd server
|
||||
./db-init.sh
|
||||
```
|
||||
|
||||
Or run the commands manually:
|
||||
|
||||
```bash
|
||||
psql -c "create user lemmy with password 'password' superuser;" -U postgres
|
||||
psql -c 'create database lemmy with owner lemmy;' -U postgres
|
||||
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
||||
```
|
||||
|
||||
#### Running
|
||||
|
|
Loading…
Reference in a new issue