]> Untitled Git - lemmy.git/commitdiff
Add instructions for unning db-init.sh to contributing_local_development.md
authorRichie Zhang <12566991+StaticallyTypedRice@users.noreply.github.com>
Thu, 6 Feb 2020 20:25:13 +0000 (12:25 -0800)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2020 20:25:13 +0000 (12:25 -0800)
docs/src/contributing_local_development.md

index c19bcba843cd19bd6e2b10c18de5d2e560e59516..7d782925a955ef87c947ea5b3bb96484fa6d4e01 100644 (file)
@@ -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