mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 13:51:19 +00:00
Update start_dev_db.sh
This commit is contained in:
parent
bd67514937
commit
b333988882
1 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
export PGDATA="$PWD/dev_pgdata"
|
||||
export PGHOST=$PWD
|
||||
export PGUSER=postgres
|
||||
export LEMMY_DATABASE_URL="postgresql://lemmy:password@/lemmy?host=$PWD"
|
||||
|
||||
# If cluster exists, stop the server and delete the cluster
|
||||
|
@ -20,5 +21,6 @@ initdb --username=postgres --auth=trust --no-instructions
|
|||
pg_ctl start --options="-c listen_addresses= -c unix_socket_directories=$PWD" > /dev/null
|
||||
|
||||
# Setup database
|
||||
psql -c "CREATE USER lemmy WITH PASSWORD 'password' SUPERUSER;" -U postgres
|
||||
psql -c "CREATE DATABASE lemmy WITH OWNER lemmy;" -U postgres
|
||||
psql -c "CREATE USER lemmy WITH PASSWORD 'password' SUPERUSER;"
|
||||
psql -c "CREATE DATABASE lemmy WITH OWNER lemmy;"
|
||||
export PGDATABASE=lemmy
|
||||
|
|
Loading…
Reference in a new issue