Mayel de Borniol 2024-01-30 17:38:43 +00:00
parent b66934c138
commit 505abbb385
2 changed files with 8 additions and 2 deletions

View file

@ -70,6 +70,8 @@ encryption_salt =
environment variable ENCRYPTION_SALT is missing.
"""
cute_gifs_dir = System.get_env("CUTE_GIFS_DIR", "data/uploads/cute-gifs/")
config :bonfire,
# how many nested replies to show
thread_default_max_depth: 7,
@ -82,7 +84,11 @@ config :bonfire,
show_debug_errors_in_dev: System.get_env("SHOW_DEBUG_IN_DEV"),
encryption_salt: encryption_salt,
signing_salt: signing_salt,
root_path: File.cwd!()
root_path: File.cwd!(),
cute_gifs: [
num: length(Path.wildcard(cute_gifs_dir <> "*.gif")),
dir: cute_gifs_dir
]
use_cowboy? = System.get_env("PLUG_SERVER") == "cowboy"

View file

@ -178,7 +178,7 @@ dev-profile-iex profile:
docker compose --profile $profile exec web iex --sname extra --remsh localenv
dev-federate:
FEDERATE=yes HOT_CODE_RELOAD=-1 HOSTNAME=$(just local-tunnel-hostname) PUBLIC_PORT=443 just dev
FEDERATE=yes HOT_CODE_RELOAD=0 HOSTNAME=$(just local-tunnel-hostname) PUBLIC_PORT=443 just dev
dev-docker *args='': docker-stop-web
docker compose $args run --name $WEB_CONTAINER --service-ports web