allow specifying secret file location
This commit is contained in:
parent
9d7c877de0
commit
dd17e0353a
|
@ -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([])
|
||||
|
|
Loading…
Reference in a new issue