i have one website live using docker, today morning i did one update to it. i created new image of the updated custom application, put it in pwd.yml file and then ran the “docker compose -f pwd.yml up -d” command
Only option is to clear redis cache. Or run the specific command that will clear a key from redis. Easiest for devops is to have redis container not mount volume and delete container on upgrade. Orchestrator will recreate new with fresh volume.
WARNING: Easy delete will work until some developer decides to start using cache as database and we cannot clear cache anymore. Then we’ll have to clear the specific key from cache using redis-cli.
The “bench update” does everything in a vm where redis is always connected on localhost. After building assets it clears the cache. This will not work in docker as the build happens when image is built where redis is not connected.
It’ll be great if assets builds and redis key clearing are decoupled in a way that we don’t have to remove it after everytime it’s upgraded.
This is happening since long time and there are 100s of posts and issues around it. Hope they find this post.
hello @revant_one,
thank you for the suggestion. I tried the method that you suggested. my frontend is still broken. i am actually a novice in frappe ecosystem, can you please help me a bit more in this matter