In production mode , I tried to deployed the application. Deployment was completed successfully but the changes in js file seems to be old. Static Signing is enabled in admin

I checked the pub/static/deployed_version.txt , but it shows previous deployment's timestamp.

In our application redis is also configured. I cleared the redis cache but nothing happend.


Delete all the old files from


Then run:

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy en_US

(if you have multiple store then add those with space separated)

| improve this answer | |
  • Is this a mandatory step to clear the pub folder in production.? – sijo joseph k Jun 27 '18 at 12:36
  • Without clearing the pub folder ,i checked this in local env , After flushing the Magento cache everything works as expected in Local. But not in production – sijo joseph k Jun 27 '18 at 12:38
  • Sometimes deployment files not override the existing one. On that case you need to clear the pub folder files and then run the process again. – Sukumar Gorai Jun 27 '18 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.