After modifying the code (e.g., HTML, CSS, or Rails backend code) inside the `zammad_backup_code` folder on the host machine, the changes **do reflect** inside the Docker container (`/opt/zammad`), but the updated code does not appear on the frontend

Subject: Issue with Code Changes Not Taking Effect in Zammad Docker-Compose Setup

Description:

Hello Zammad Team,

I have deployed Zammad using Docker Compose following the official documentation. My setup is as follows:

  • Zammad Version: 6.4.1
  • Deployment: Docker Compose
  • Service Details:
    • zammad-railsserver is running with the following volume mapping:

yaml

复制代码

volumes:
  - ./zammad_backup_code:/opt/zammad

Issue:
After modifying the code (e.g., HTML, CSS, or Rails backend code) inside the zammad_backup_code folder on the host machine, the changes do reflect inside the Docker container (/opt/zammad), but the updated code does not appear on the frontend. I have already attempted the following steps:

  1. Cleared Rails cache:

bash

复制代码

docker compose run --rm zammad-railsserver rails r "Rails.cache.clear"
  1. Recompiled assets:

bash

复制代码

docker compose run --rm zammad-railsserver rails assets:precompile
  1. Restarted the relevant containers:

bash

复制代码

docker compose restart zammad-railsserver
docker compose restart zammad-nginx
  1. Cleared browser cache and performed a hard reload.

Observations:

  • The changes are visible when checking the code inside the zammad-railsserver container (/opt/zammad).
  • The frontend still shows the old version of the code.
  • No errors appear in the zammad-railsserver or zammad-nginx logs.

Request for Assistance:
Could you please guide me on what else I might be missing? Is there any additional cache layer or configuration that I need to address to ensure that my changes take effect?

Thank you for your support!

Having the same issue. Seems like some kind of caching issue, but not sure how to invalidate/reset cache (I would have thought Rails.cache.clear would have wiped out Redis cache).

If I modify the front-end code, do I need to execute certain commands under the docker opt app directory? I synchronized it to docker on the win host, but it did not modify the front-end code successfully. It is still unchanged.

The docker variants do not have the required tool chain to precompile Zammads assets (which is mandatory). At least to my knowledge.

[quote=“MrGeneration, post:4, topic:16351”]
The docker variants do not have the required tool chain to precompile Zammads assets (which is mandatory). At least to my knowledge.
[/quote]If I run docker on win and then deploy zammad, is there any way I can develop it locally?

I modified the front-end code and synchronized it to docker without updating the front-end. It was quite distressing. .

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.