summaryrefslogtreecommitdiffstats
path: root/docs/src/contributing_local_development.md
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-02-06 16:23:35 -0500
committerDessalines <tyhou13@gmx.com>2020-02-06 16:23:35 -0500
commitcd4001b2ef305bf7e0750914c0bbdcbdb68bf1a0 (patch)
tree9f42bb951cbe97c4f79baa86a92571eba9a10a23 /docs/src/contributing_local_development.md
parent1c030d1fb667ef7223d1e0ab1038d095f76f2d02 (diff)
parent33563c3e9fa123efe0824f611413a23a138a1f1e (diff)
Merge branch 'minor_changes' of https://github.com/StaticallyTypedRice/lemmy into StaticallyTypedRice-minor_changes
Diffstat (limited to 'docs/src/contributing_local_development.md')
-rw-r--r--docs/src/contributing_local_development.md15
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