diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-21 05:46:47 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-21 05:46:47 +0300 |
commit | 7e35bdbd3c51771532f77b58829c6f0e2dcd08ca (patch) | |
tree | e275a2cd2c82d82aba08f2db89c09a7ed7238b49 | |
parent | ddf5e6254a4e7099ba965de0e79dbd74e51c143d (diff) | |
download | pleroma-7e35bdbd3c51771532f77b58829c6f0e2dcd08ca.tar.gz |
Copy the nginx config to the release directory
-rw-r--r-- | mix.exs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -37,7 +37,7 @@ defmodule Pleroma.Mixfile do pleroma: [ include_executables_for: [:unix], applications: [ex_syslogger: :load, syslog: :load], - steps: [:assemble, ©_files/1] + steps: [:assemble, ©_files/1, ©_nginx_config/1] ] ] ] @@ -48,6 +48,11 @@ defmodule Pleroma.Mixfile 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. |