diff options
author | Richie Zhang <12566991+StaticallyTypedRice@users.noreply.github.com> | 2020-02-06 12:25:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 12:25:13 -0800 |
commit | 12c7633380736c7bb65ec71a30df932f34279f25 (patch) | |
tree | 49258b82ae1725aca9b864b826f3a2433450c3db /docs | |
parent | da6cdb7c26af1041ce179a68841437d5dcc6b234 (diff) |
Add instructions for unning db-init.sh to contributing_local_development.md
Diffstat (limited to 'docs')
-rw-r--r-- | docs/src/contributing_local_development.md | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/docs/src/contributing_local_development.md b/docs/src/contributing_local_development.md index c19bcba8..7d782925 100644 --- a/docs/src/contributing_local_development.md +++ b/docs/src/contributing_local_development.md @@ -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 |