phoenixframework / phoenix_live_reload

Provides live-reload functionality for Phoenix
MIT License
315 stars 90 forks source link

Watch for changes outside the project folder #127

Closed carlotm closed 2 years ago

carlotm commented 2 years ago

Not sure if this is a bug or not, is it possible to watch for changes outside the project folder?

I tried configuring :phoenix_live_reload like this

config :phoenix_live_reload,
  dirs: [
    "../another_project/priv/static",
    ...
  ]

but it does not reload.

Thank you

josevalim commented 2 years ago

Yes, we set up the watcher inside the project root exclusively, so this won't work. A PR for the docs would be welcome!