I have a server with a production install of magento. When I deploy a new version, adding for example a new .less file, the new markup doesn't get loaded. I cleared the cache, rebuild the static-content. Only after switching to developer mode the changes are loaded.
This process, switching back and forth between dev and prod causes a goot 10 minutes downtime. Can someone explain this? What is the proper way to update css, or anything, for magento 2 in production?
Thank you
bin/magento setup:static-content:deploy && bin/magento setup:static-content:deploy de_DE nl_BE en_GB en_US fr_FR -f && php bin/magento c:f
If that doesn't work, then also try to callphp bin/magento setup:upgrade --keep-generated && php bin/magento setup:di:compile
before it.production
mode todeveloper
mode. It is a bug.