X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=mix.exs;h=bd8a10c66f9e5baa589832acef2d09b294416e1e;hb=89fead9250a5bd9b6712a285e8a827f1aec69615;hp=9fdf6e83a3016098452a92fd6feed569352e486e;hpb=ba584364e905531417dae2e07675dbbf60c3a007;p=akkoma diff --git a/mix.exs b/mix.exs index 9fdf6e83a..bd8a10c66 100644 --- a/mix.exs +++ b/mix.exs @@ -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,15 @@ 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.