Unless I'm misusing it, node --watch-path foo.html --watch server.js will *not* properly restart a HTTP server running via server. js when foo.html is edited. That seems to completely break the feature. :\
Conversation
Notices
-
Embed this notice
Raymond Camden (raymondcamden@mastodon.social)'s status on Tuesday, 02-Apr-2024 03:29:23 JST Raymond Camden -
Embed this notice
Aral Balkan (aral@mastodon.ar.al)'s status on Tuesday, 02-Apr-2024 03:29:23 JST Aral Balkan @raymondcamden Nodemon is your friend ;)
https://www.npmjs.com/package/nodemon
And if you want to roll your own basic process manager, see what I’m doing here in Kitten:
https://codeberg.org/kitten/app/src/branch/main/build-templates/kitten-process-manager.js
-
Embed this notice