#Does extension auto reload work in docker container?

25 messages · Page 1 of 1 (latest)

sonic socket
#

This is my docker compose file

#

the .env file contains this

#

I can see the log "Watching extensions for changes..." but nothing happens when updating the extension files

willow escarp
#

That is possible not all host operating systems allow for watching the files (windows is the main culprit there)

sonic socket
#

But it seems to not work after the docker version came

#

it just quits the script without any errors

willow escarp
#

have you tried not overwriting the entire /extensions folder but just mounting the specific extensions you want? that sometimes helps

sonic socket
#

the extension files inside /extensions/hooks/myextension gets updated but the server doesn't reload

#

It works if i run the npm version

willow escarp
willow escarp
sonic socket
willow escarp
willow escarp
#

mounting your extensions individually ```
volumes:

  • /path/to/extension/dist:/directus/extensions/<type>/<name>
sonic socket
willow escarp
#

Thats a shame

sonic socket
#

it was working for me in npm just fine.

#

npm suddenly stopped working

willow escarp
#

Docker runs under Linux so the file watching compatibility is not great when updating on the Windows end and expecting linux to pick up on that