Merge pull request #4721 from qzhuyan/dev/william/add-dir-for-hot-patching

feat: add patches dir: data/patches
This commit is contained in:
William Yang 2021-04-30 22:09:38 +02:00 committed by GitHub
commit d6d2903a53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -113,3 +113,6 @@
## Specifies how long time (in milliseconds) to spend shutting down the system. ## Specifies how long time (in milliseconds) to spend shutting down the system.
## See: http://erlang.org/doc/man/erl.html ## See: http://erlang.org/doc/man/erl.html
-shutdown_time 30000 -shutdown_time 30000
## patches dir
-pa {{ platform_data_dir }}/patches

View File

@ -112,3 +112,5 @@
## See: http://erlang.org/doc/man/erl.html ## See: http://erlang.org/doc/man/erl.html
-shutdown_time 10000 -shutdown_time 10000
## patches dir
-pa {{ platform_data_dir }}/patches

View File

@ -310,6 +310,7 @@ relx_overlay(ReleaseType) ->
, {mkdir, "data/"} , {mkdir, "data/"}
, {mkdir, "data/mnesia"} , {mkdir, "data/mnesia"}
, {mkdir, "data/configs"} , {mkdir, "data/configs"}
, {mkdir, "data/patches"}
, {mkdir, "data/scripts"} , {mkdir, "data/scripts"}
, {template, "data/loaded_plugins.tmpl", "data/loaded_plugins"} , {template, "data/loaded_plugins.tmpl", "data/loaded_plugins"}
, {template, "data/loaded_modules.tmpl", "data/loaded_modules"} , {template, "data/loaded_modules.tmpl", "data/loaded_modules"}