allow specifying secret file location

This commit is contained in:
Kegan Myers 2023-07-23 14:35:54 -05:00
parent 9d7c877de0
commit dd17e0353a

View file

@ -63,8 +63,8 @@
# Finally import the config/prod.secret.exs
# which should be versioned separately.
if File.exists?("./config/prod.secret.exs") do
import_config "prod.secret.exs"
if File.exists?(System.get_env("PROD_SECRET_FILE", "./config/prod.secret.exs")) do
import_config System.get_env("PROD_SECRET_FILE", "./config/prod.secret.exs")
else
"`config/prod.secret.exs` not found. You may want to create one by running `mix pleroma.instance gen`"
|> IO.warn([])