testdrivenio / flask-on-docker

Flask + Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Volume for static files doesn't receive file updates

kontur opened this issue · comments

Hey!

I've been following the great guide for this repo and was wondering about the static_volume defined for both web and nginx services here

The tutorial sort of just doesn't mention this, but the way it is set up the files in the volume are never updated on rebuild even if they change (unless destroying the volume), or am I misunderstanding the setup?

I wonder how one could get file changes to be reflected in the volume? And I don't mean a mapping like for the dev setup, but say you develop some static assets in the app and release the next version in production... currently no files are updated. This seems like quite a crucial bit missing from the setup that I couldn't figure out.