CJC
Denoβ€’2y agoβ€’
2 replies
CJ

How to Restart Server Manually

I run Hono framework with Deno. I run the server using task script deno run -A --watch ./server/main.js. But somehow, I want to watch changes in a directory which is out of reach and restart the server when a change occur in that directory.

I guess I need
--watch
programmatically. I tried looking in the docs but found none. So, how can I watch and restart server manually?
Was this page helpful?