forked from AkkomaGang/akkoma
Make prod.secret.exs optional (with warning)
This commit is contained in:
parent
b221d77a6d
commit
b22f54eb29
1 changed files with 6 additions and 1 deletions
|
@ -63,7 +63,12 @@
|
|||
|
||||
# Finally import the config/prod.secret.exs
|
||||
# which should be versioned separately.
|
||||
import_config "prod.secret.exs"
|
||||
if File.exists?("./config/prod.secret.exs") do
|
||||
import_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([])
|
||||
end
|
||||
|
||||
if File.exists?("./config/prod.exported_from_db.secret.exs"),
|
||||
do: import_config("prod.exported_from_db.secret.exs")
|
||||
|
|
Loading…
Reference in a new issue