You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a configuration setting to instruct chokidar ignore a folder in the root project.
Motivation
Working with RedwoodJS and Docker in a local environment, I run a Docker container with an external service and mounted a volume "data" for container persistence.
This folder is scanned by chokidar and fails with EACCESS (given that Docker set root permissions on that folder)
Error: EACCES: permission denied, watch '..../git/proj/data/bitcoind/testnet3/blocks'
gen | at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
gen | at Object.watch (node:fs:2343:34)
gen | at createFsWatchInstance (....../node_modules/chokidar/lib/nodefs-handler.js:119:15
There are other use cases when would be nice to add folders in the Redwood root project and prevent chokidar to scan them (3rd party tools, infrastructure folders, etc.)
Detailed proposal
Adding a [chokidar] section in redwood.toml is probably enough.
Other option (simpler) would be to hardcode the setting when creating the chokidar instance (for example: "ignore all folders that begins with a dot like .data")
Are you interested in working on this?
I'm interested in working on this
The text was updated successfully, but these errors were encountered:
Tobbe
changed the title
[RFC]: Setting for ignoring a forder in chokidar
[RFC]: Setting for ignoring a folder in chokidar
Jun 27, 2023
Summary
Add a configuration setting to instruct
chokidar
ignore a folder in the root project.Motivation
Working with RedwoodJS and Docker in a local environment, I run a Docker container with an external service and mounted a volume "data" for container persistence.
This folder is scanned by
chokidar
and fails with EACCESS (given that Docker set root permissions on that folder)There are other use cases when would be nice to add folders in the Redwood root project and prevent
chokidar
to scan them (3rd party tools, infrastructure folders, etc.)Detailed proposal
[chokidar]
section inredwood.toml
is probably enough.chokidar
instance (for example: "ignore all folders that begins with a dot like .data")Are you interested in working on this?
The text was updated successfully, but these errors were encountered: