build: copy ee-examples for Enterprise edition elixir build
This commit is contained in:
parent
5425cae650
commit
07c80f4031
13
mix.exs
13
mix.exs
|
@ -543,6 +543,19 @@ defmodule EMQXUmbrella.MixProject do
|
||||||
force: overwrite?
|
force: overwrite?
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# copy /rel/config/ee-examples if profile is enterprise
|
||||||
|
case profile do
|
||||||
|
"emqx-enterprise" ->
|
||||||
|
File.cp_r!(
|
||||||
|
"rel/config/ee-examples",
|
||||||
|
Path.join(etc, "examples"),
|
||||||
|
force: overwrite?
|
||||||
|
)
|
||||||
|
|
||||||
|
_ ->
|
||||||
|
:ok
|
||||||
|
end
|
||||||
|
|
||||||
# this is required by the produced escript / nodetool
|
# this is required by the produced escript / nodetool
|
||||||
Mix.Generator.copy_file(
|
Mix.Generator.copy_file(
|
||||||
Path.join(release.version_path, "start_clean.boot"),
|
Path.join(release.version_path, "start_clean.boot"),
|
||||||
|
|
Loading…
Reference in New Issue