Dynamic host/port config
pikeas opened this issue · comments
Aris Pikeas commented
Currently, start_link/0
calls Fluxster.config_for/1
. This seems to prevent runtime configuration of parameters.
Here are a few ways to improve this:
- Add
@defoverridable start_link: 0
- Make
Fluxster.config_for
the default value for a newconfig_fun
variable. - Have
config_for
read fromSystem.get_env
beforeApplication.get_all_env
. - Move
config_for
into__using__
and make it overridable, and call it on the module rather than on Fluxter.
Cristian Rosa commented
I've submitted a pull request to implement such functionality.
#19
Enjoy!