kj-1010-1414
kj-1010-141410mo ago

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?
2 Replies
marvinh.
marvinh.10mo ago
You can pass additional files and folders to watch by doing deno run -A --watch=some/folder/,otherfolder/ server/main.js
kj-1010-1414
kj-1010-1414OP10mo ago
Thanks.

Did you find this page helpful?