projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da4af72
)
Set instance static/uploads to be outside of application directory in release config
author
rinpatch
<rinpatch@sdf.org>
Thu, 13 Jun 2019 22:38:32 +0000
(
01:38
+0300)
committer
rinpatch
<rinpatch@sdf.org>
Thu, 13 Jun 2019 22:42:56 +0000
(
01:42
+0300)
In case of releases the application directory changes with each version
so the contents will not be accessible
config/releases.exs
patch
|
blob
|
history
diff --git
a/config/releases.exs
b/config/releases.exs
index f8494dd345c47296a258463e02baaced86c3efbb..98c5ceccd54a5501dfefcd8a845d148aedca390f 100644
(file)
--- a/
config/releases.exs
+++ b/
config/releases.exs
@@
-1,5
+1,8
@@
import Config
+config :pleroma, :instance, static_dir: "/var/lib/pleroma/static"
+config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads"
+
config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs"
if File.exists?(config_path) do