hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
6.5k stars 236 forks source link

Introducing nodemon with legacywatch for workers #469

Open CrypticC3s4r opened 1 month ago

CrypticC3s4r commented 1 month ago

With my Setup the tsx watcher does not run correctly. Introducing nodemon with its legacy-watch fixes this problem

MohamedBassem commented 1 month ago

What kind of issues are you facing with tsx watch?

CrypticC3s4r commented 1 month ago

The normal tsx watch does not recognize the file changes somehow. Using nodemon with its legacy-watch works for me. This might be an issue in sharing a volume from windows to docker. The legacy-watch watches "manually" (polling) for file changes, rather than relying on the system events and messages.

As a result I do not need to restart all docker machines to get my changes compiled rather than the nodemon recognizes a change and compiles it "on the go"