Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Add option to skip dotenv files recreation when `just up` runs (#5191)
Krystle Salazarbe9481dbde6d
diff --git a/env.template b/env.templateindex 27720ff72..fa8dfa849 100644--- a/env.template+++ b/env.template@@ -1,4 +1,3 @@-# Catalog-AIRFLOW_PORT=9090-AWS_ACCESS_KEY=test_key-AWS_SECRET_KEY=test_secret+# DC_USER=opener++# SKIP_DOTENV_FILES_RECREATION=truediff --git a/justfile b/justfileindex 3a31bdd93..2870c41bf 100644--- a/justfile+++ b/justfile@@ -1,4 +1,4 @@-set dotenv-load := false+set dotenv-load := true# Meaning of Just prefixes:# @ - Quiet recipes (https://github.com/casey/just#quiet-recipes)@@ -209,7 +209,12 @@ _env src dest:dest_file.write(f"{key}={value}\n")# Create .env files from templates-@env:+env:+ #!/usr/bin/env sh+ if {{ env_var_or_default("SKIP_DOTENV_FILES_RECREATION", "false") }} ; then+ echo "Skipping .env files (re)creation."+ exit 0+ fi# Rootjust _env env.template .env# Docker