Kemal auto-restart?

Does anybody know how Kemal auto-restart works ?

https://code-maven.com/slides/crystal/kemal-autorestart
Screenshot 2023-10-09 at 17.21.33

From the snippet, I guess the magic lies with sentry, but I don’t know what that is…

:slight_smile:

Never mind, I found the manual for sentry:

1 Like

If it’s for development purposes, I’m stil using entr:

find . -iname '*.cr' -o -iname '*.ecr' | entr -rs 'shards build server && exec bin/server'

Which is easily findable in my shell history.

The neat thing with entr is that pretty generic, so find web/modules/custom/ -iname '*.php' | entr ./vendor/bin/phpunit works out just as well.

Though sentry does have nicer output.

3 Likes

Thank you !