releases support
This commit is contained in:
parent
e699861690
commit
efb8ef5abe
6 changed files with 103 additions and 57 deletions
|
|
@ -6,6 +6,8 @@ config :pleroma, :modules, runtime_dir: "/var/lib/pleroma/modules"
|
|||
|
||||
config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs"
|
||||
|
||||
config :pleroma, release: true, config_path: config_path
|
||||
|
||||
if File.exists?(config_path) do
|
||||
import_config config_path
|
||||
else
|
||||
|
|
@ -18,3 +20,9 @@ else
|
|||
|
||||
IO.puts(warning)
|
||||
end
|
||||
|
||||
exported_config = Path.join([Path.dirname(config_path), "prod.exported_from_db.secret.exs"])
|
||||
|
||||
if File.exists?(exported_config) do
|
||||
import_config exported_config
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue