Copy the nginx config to the release directory

This commit is contained in:
rinpatch 2019-06-21 05:46:47 +03:00
parent ddf5e6254a
commit 7e35bdbd3c

View file

@ -37,7 +37,7 @@ def project do
pleroma: [
include_executables_for: [:unix],
applications: [ex_syslogger: :load, syslog: :load],
steps: [:assemble, &copy_files/1]
steps: [:assemble, &copy_files/1, &copy_nginx_config/1]
]
]
]
@ -48,6 +48,11 @@ def copy_files(%{path: target_path} = release) do
release
end
def copy_nginx_config(%{path: target_path} = release) do
File.cp!("./installation/pleroma.nginx", Path.join([target_path, "installation", "pleroma.nginx"]))
release
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.