Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma] / config / releases.exs
1 import Config
2
3 config :pleroma, :instance, static: "/var/lib/pleroma/static"
4 config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads"
5
6 config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs"
7
8 if File.exists?(config_path) do
9 import_config config_path
10 else
11 warning = [
12 IO.ANSI.red(),
13 IO.ANSI.bright(),
14 "!!! #{config_path} not found! Please ensure it exists and that PLEROMA_CONFIG_PATH is unset or points to an existing file",
15 IO.ANSI.reset()
16 ]
17
18 IO.puts(warning)
19 end