Cleanup root folder of repo (#5712)
* Move dev_pgdata folder to target dir * Move security.md to .github * Move db sockets to target folder * change db url * remove releases.md
This commit is contained in:
parent
f3f3a69708
commit
6bcbfb0a51
0
SECURITY.md → .github/SECURITY.md
vendored
0
SECURITY.md → .github/SECURITY.md
vendored
4
.gitignore
vendored
4
.gitignore
vendored
@ -28,9 +28,5 @@ pictrs/
|
||||
# The generated typescript bindings
|
||||
bindings
|
||||
|
||||
# Database cluster and sockets for testing
|
||||
dev_pgdata/
|
||||
*.PGSQL.*
|
||||
|
||||
# database dumps
|
||||
*.sqldump
|
||||
|
@ -1,3 +0,0 @@
|
||||
[Lemmy Releases / news](https://join-lemmy.org/news)
|
||||
|
||||
[Github link](https://github.com/LemmyNet/joinlemmy-site/tree/main/src/assets/news)
|
@ -1,10 +1,10 @@
|
||||
# This script is meant to be run with `source` so it can set environment variables.
|
||||
|
||||
export PGDATA="$PWD/dev_pgdata"
|
||||
export PGHOST=$PWD
|
||||
export PGDATA="$PWD/target/dev_pgdata"
|
||||
export PGHOST="$PWD/target"
|
||||
|
||||
# Necessary to encode the dev db path into proper URL params
|
||||
export ENCODED_HOST=$(printf $PWD | jq -sRr @uri)
|
||||
export ENCODED_HOST=$(printf $PGHOST | jq -sRr @uri)
|
||||
|
||||
export PGUSER=postgres
|
||||
export DATABASE_URL="postgresql://lemmy:password@$ENCODED_HOST/lemmy"
|
||||
@ -28,7 +28,7 @@ fi
|
||||
config_args=(
|
||||
# Only listen to socket in current directory
|
||||
-c listen_addresses=
|
||||
-c unix_socket_directories=$PWD
|
||||
-c unix_socket_directories=$PGHOST
|
||||
|
||||
# Write logs to a file in $PGDATA/log
|
||||
-c logging_collector=on
|
||||
|
Loading…
x
Reference in New Issue
Block a user