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?
marvinh.49d ago
You can pass additional files and folders to watch by doing deno run -A --watch=some/folder/,otherfolder/ server/main.js
kj-1010-141449d ago