1

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

0

Delete all the old files from

pub/static/frontend
pub/static/_requirejs
var/generated/
var/cache
var/page_cache

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)

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

Your Answer

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

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