Branch: Tag:

2018-04-18

2018-04-18 22:37:54 by Pontus Östlund <ponost@roxen.com>

Hot reload: Support a list of comma separated modules.

It's also possible to specify for which configuration the module/s should be hot reloaded.

--module-hot-reload=mod1[,mod2[,mod3[, ...]]]
--module-hot-reload-conf=conf1[,conf2[,conf3[ ...]]]

148:   remove_dumped_passed=no      module_hot_reload= + module_hot_reload_conf=      remove_old_dot_o_files () {    dp "Removing old precompiled files ($1)"
348:    mod=`echo $1 | sed -e 's/--module-hot-reload=//'`    module_hot_reload="$mod $module_hot_reload"    ;; +  --module-hot-reload-conf=*) +  mod=`echo $1 | sed -e 's/--module-hot-reload-conf=//'` +  module_hot_reload_conf="$mod $module_hot_reload_conf" +  ;;    '--quiet'|'-q')    verbose=0    ;;
588:    .B<module-name>B. is the filename minus the extension    of the module.    +  .B--module-hot-reload-conf=<conf>B. +  Set for which configuration .B--module-hot-reloadB. +  should be applied. By default all module instances +  in all configurations will be hot-reloaded. +     .B--mysql-log-queriesB.: Instruct the MySQL server to log all    queries so that they end up in the Roxen    debug log.
1150:    if [ "x$module_hot_reload" != "x" ]; then    pass="$pass --module-hot-reload=\"$module_hot_reload\""    fi +  if [ "x$module_hot_reload_conf" != "x" ]; then +  pass="$pass --module-hot-reload-conf=\"$module_hot_reload_conf\"" +  fi    # Check for stop.    if [ "$stop"x != x ]    then