Load ex_syslog and copy pleroma_ctl

This commit is contained in:
rinpatch 2019-06-08 17:17:10 +03:00
parent 3d374bf7df
commit c47dc0de2c

12
mix.exs
View file

@ -32,8 +32,20 @@ def project do
],
main: "readme",
output: "priv/static/doc"
],
releases: [
pleroma: [
include_executables_for: [:unix],
applications: [ex_syslogger: :load, syslog: :load],
steps: [:assemble, &copy_pleroma_ctl/1]
]
]
]
end
def copy_pleroma_ctl(%{path: target_path} = release) do
File.cp!("./rel/pleroma_ctl", Path.join([target_path, "bin", "pleroma_ctl"]))
release
end
# Configuration for the OTP application.