Change js file in production mode
-
15-04-2021 - |
문제
I changed this file
app/design/frontend/VENDOR/THEME/web/mage/validation.js
But changes are not reflected; I'm in production mode
I deployed static content with
bin/magento setup:static-content:deploy -f fr_FR
cleared the cache
php bin/magento cache:flush
php bin/magento cache:clear
But changes didn't get applied. Should i change mode to developer?
해결책
Try to follow this steps(Ubuntu or Linux only) :-
sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code
sudo php bin/magento setup:upgrade
sudo php bin/magento setup:static-content:deploy fr_FR -f
sudo php bin/magento cache:flush
제휴하지 않습니다 magento.stackexchange