Add a flag to enable/disable reload mock config automatically
LinuxSuRen opened this issue · comments
The Mock Server can only read the config at the startup stage. Users need to restart it if they modified the config file content.
Solution
Support to watch the changes of the mock config file. And provide a flag to enable or disable this feature. The usage might be:
atest mock --files demo-server.yaml --auto-reload [true|false]
And I prefer setting the flag value --auto-reload
to be false
.