Explorar el Código

Merge pull request #14169 from terry-xiaoyu/pathes-dir-not-work

The data/patches dir not work
zmstone hace 1 año
padre
commit
3d4b40f3db
Se han modificado 2 ficheros con 4 adiciones y 0 borrados
  1. 3 0
      apps/emqx/etc/vm.args.cloud
  2. 1 0
      dev

+ 3 - 0
apps/emqx/etc/vm.args.cloud

@@ -119,6 +119,9 @@
 ## See: http://erlang.org/doc/man/erl.html
 -shutdown_time 30000
 
+## Disable the code path caching feature to allow adding dynamic patch path using `-pa`.
+-cache_boot_paths false
+
 ## patches dir
 -pa "{{ platform_data_dir }}/patches"
 

+ 1 - 0
dev

@@ -348,6 +348,7 @@ $ERL_NAME_ARG $EMQX_NODE_NAME
 +SDio 8
 -shutdown_time 30000
 -pa '$EMQX_DATA_DIR/patches'
+-cache_boot_paths false
 -mnesia dump_log_write_threshold 5000
 -mnesia dump_log_time_threshold 60000
 -os_mon start_disksup false