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.

1 Answer 1


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)

  • Is this a mandatory step to clear the pub folder in production.? Commented Jun 27, 2018 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 Commented Jun 27, 2018 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. Commented Jun 27, 2018 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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