Trigger: small utility to restart your app on recompile


#1

Hi. I’ve made a small utility that’s handy to automatically restart your app once its executable changed: https://github.com/k-bx/trigger

It’s in “alpha” stage, but should be good enough to get some feedback and maybe gather alternatives that I couldn’t find.

Thanks!


#2

Looking good for a specific usecase. Your target is watching only single executable file right?

I use steel overseer for similar job but I have to write wrapper script to kill and respawn the target myself.

You might want to looking for the same file pattern matching to extends usage spectrum of your tool (in case you want to do).


#3

Currently (and default behavior) yes, but next step is to replace this script also (plus making it cross platform) https://gitlab.com/k-bx/meetup/blob/master/run-dev.sh


#4

Thinking about using DHall to describe a matching function btw


#5

That’s awesome – I like the idea of using DHall, but the current zero-configuration style is also very nice, it just does what it’s supposed to do.


#6

There already exist one trigger for restart workflows:

I wonder, how it compares :thinking:


#7

Nice! Still want to make the DHall configuration (started checking it out), plus I like the default behavior of my app (point to executable, zero-config).


#8

I wish stack would do this also with --file-watch