It's urgent my live site website has unaligned after running;
"sudo bin/magento-cli setup:static-content:deploy" command.

All page alignment has changed.
Please help to fix this solution.

Please check the image below for my unaligned website. (CSS and js file are not loading) enter image description here

  • can you add screenshot, also please check consol log for errors hint – fmsthird Jun 11 '19 at 5:00
  • Please check my updated question. – Priya Jun 11 '19 at 5:04
  • did you check the browser console for some error logs – fmsthird Jun 11 '19 at 5:06
  • Please let me know how to check that – Priya Jun 11 '19 at 5:08
  • right click on your website page , then choose inspect, then click on Console tab – fmsthird Jun 11 '19 at 5:09

To solve this issue you can backup your generated/ pub/static/ var/cache/folders and delete them for once. Now run below command again.

sudo bin/magento-cli setup:static-content:deploy -f
  • I think the command should also include the en_GB language pack – fmsthird Jun 11 '19 at 5:57
  • Yeah we can include en_GB language pack. But with this also it will work. – Nisha Jangid Jun 11 '19 at 5:59
  • but her site is using english uk locale without specifying the en_GB will result to some css issue – fmsthird Jun 11 '19 at 6:02

You can try to run deploy static command for a specific language:

sudo bin/magento-cli setup:static-content:deploy -f en_GB
  • Please let me now what is the use for above command? – Priya Jun 11 '19 at 5:16
  • it will redeploy static contents specific for the english UK (en_GB) -f to force redeploy – fmsthird Jun 11 '19 at 5:18
  • Okay, now running the command, let you know once completed – Priya Jun 11 '19 at 5:19

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.