mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Copy the nginx config to the release directory
This commit is contained in:
parent
ddf5e6254a
commit
7e35bdbd3c
1 changed files with 6 additions and 1 deletions
7
mix.exs
7
mix.exs
|
@ -37,7 +37,7 @@ defmodule Pleroma.Mixfile do
|
||||||
pleroma: [
|
pleroma: [
|
||||||
include_executables_for: [:unix],
|
include_executables_for: [:unix],
|
||||||
applications: [ex_syslogger: :load, syslog: :load],
|
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
|
release
|
||||||
end
|
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.
|
# Configuration for the OTP application.
|
||||||
#
|
#
|
||||||
# Type `mix help compile.app` for more information.
|
# Type `mix help compile.app` for more information.
|
||||||
|
|
Loading…
Reference in a new issue