middlewarehq / middleware

✨ Open-source dev productivity platform for engineering teams ✨
https://middlewarehq.com
Apache License 2.0
390 stars 32 forks source link

Local file changes not persisted after container restart with docker-compose watch in `dev.sh` #353

Closed adnanhashmi09 closed 1 week ago

adnanhashmi09 commented 1 month ago

Description

When using dev.sh watching local file changes, the changes are not reflected in the container after restarting it. This issue occurs specifically with the watch command in the development CLI.

Steps to Reproduce

  1. Start the development environment with dev.sh.
  2. Make some changes in the local version of the code which is being watched by dev.sh
  3. Restart the container by quitting dev.sh and then restarting it
  4. The changes made to the local files are not reflected in the container.

Expected Behavior

When restarting the container, the changes made to the local files should be automatically reflected in the container's filesystem.

Actual Behavior

The local file changes are not synced or persisted in the container's filesystem after restarting the container. The file needs to be saved again by hitting Ctrl - S on your text editor for the watch command to sync again.

Additional Context

adnanhashmi09 commented 1 week ago

Closing this issue, as this was fixed in #435