mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-09-02 03:03:57 +00:00
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
4 changed files with 4 additions and 11 deletions
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
|
# The generated typescript bindings
|
||||||
bindings
|
bindings
|
||||||
|
|
||||||
# Database cluster and sockets for testing
|
|
||||||
dev_pgdata/
|
|
||||||
*.PGSQL.*
|
|
||||||
|
|
||||||
# database dumps
|
# database dumps
|
||||||
*.sqldump
|
*.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.
|
# This script is meant to be run with `source` so it can set environment variables.
|
||||||
|
|
||||||
export PGDATA="$PWD/dev_pgdata"
|
export PGDATA="$PWD/target/dev_pgdata"
|
||||||
export PGHOST=$PWD
|
export PGHOST="$PWD/target"
|
||||||
|
|
||||||
# Necessary to encode the dev db path into proper URL params
|
# 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 PGUSER=postgres
|
||||||
export DATABASE_URL="postgresql://lemmy:password@$ENCODED_HOST/lemmy"
|
export DATABASE_URL="postgresql://lemmy:password@$ENCODED_HOST/lemmy"
|
||||||
|
@ -28,7 +28,7 @@ fi
|
||||||
config_args=(
|
config_args=(
|
||||||
# Only listen to socket in current directory
|
# Only listen to socket in current directory
|
||||||
-c listen_addresses=
|
-c listen_addresses=
|
||||||
-c unix_socket_directories=$PWD
|
-c unix_socket_directories=$PGHOST
|
||||||
|
|
||||||
# Write logs to a file in $PGDATA/log
|
# Write logs to a file in $PGDATA/log
|
||||||
-c logging_collector=on
|
-c logging_collector=on
|
||||||
|
|
Loading…
Reference in a new issue