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:
Nutomic 2025-05-30 08:35:43 +00:00 committed by GitHub
parent f3f3a69708
commit 6bcbfb0a51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 11 deletions

View File

4
.gitignore vendored
View File

@ -28,9 +28,5 @@ pictrs/
# The generated typescript bindings
bindings
# Database cluster and sockets for testing
dev_pgdata/
*.PGSQL.*
# database dumps
*.sqldump

View File

@ -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)

View File

@ -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