-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically restart mimosa when its config file changes #418
Comments
Mimosa should automatically do that :-) |
That's not in mimosa. There is a module: https://github.com/dbashford/mimosa-restart that could probably be augmented to watch the config. Right now it just monitors your public directory and if it disappears it restarts mimosa in-process. |
I've included that functionality in mimosa-restart. So, add "restart" to your restart: {
updated:["mimosa-config.js"]
} |
That's awesome, thanks! I had just been looking through the code yesterday and was going to try and find some time to tackle it myself! Much appreciated! Ken
|
During development, I frequently add new entries to my browserify:aliases list in mimosa-config.coffee. Currently, every time I do so, I have to remember to Alt-Tab over to Mimosa's window, do a Ctrl-C and then up arrow, then Enter to kill and restart mimosa.
It sounds like not much effort, but when I am creating several files and new aliases in a row, it's a bit annoying and I sometimes forget and wonder why things are not working.
It would be great if mimosa could watch its own config file and then restart itself with the same arguments as it was initially run with. This could be an option in the config or the default.
The text was updated successfully, but these errors were encountered: