Branch: Tag:

2018-04-17

2018-04-17 19:52:04 by Pontus Östlund <ponost@roxen.com>

Added module hot reload as start flag.

./start --once --module-hot-reload=module1 --module-hot-reload=module2 ...

Note that the module will be reloaded in all configurations it resides.

101:    return configuration_dir;   }    + //! @ignore + array(string) query_hot_reload_modules() + //! Returns an array of modules added for hot reloading via + //! @tt{--module-hot-reload=<modname>@}. + { +  if (hot_reload_modules) { +  return map(hot_reload_modules/" ", String.trim_all_whites) - ({ "" }); +  } +  +  return ({}); + } + //! @endignore +    array(string|int) filename_2 (program|object o)   {    if( objectp( o ) )
138:   }      protected int once_mode; + // String of modules added for hot reloading via --module-hot-reload=<mod> + protected string hot_reload_modules;      // Note that 2.5 is a nonexisting version. It's only used for the   // cache static optimization for tags such as <if> and <emit> inside
6661:    mark_fd(2, "Stderr");       once_mode = (int)Getopt.find_option(argv, "o", "once"); +  hot_reload_modules = Getopt.find_option(argv, 0, "module-hot-reload");       configuration_dir =    Getopt.find_option(argv, "d",({"config-dir","configuration-directory" }),