Techiio-author
Started by Debarghya DasSep 23, 2021

Open
File changes are not reflected in Docker webapp

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I have a Rails app, trying to run it in Docker. I have a bind mount with the source code, but the web server does not reflect the changes. E.g. editing /app/views/layouts/application.html.erb makes no difference.

I then removed the bind mount, and edited directly in the container. Same thing happens. I have deleted the browser cache, but the old page is loaded every time. The inodes are the same before and after editing. Strangely - a drastic change like renaming the whole layouts directory makes a difference.

I would expect to see the files change as soon as I reload the page. This works as expected when run from the host, but not from docker.

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance