1

Sever memory exhausted while run content deploy command and sever memory can't be increase then how to run content deploy command?

0

Before posting a question on Stack Exchange, please have a little look around first, you'll often find the question has already been asked/answered. Maybe just asked in a slightly different way.

See the answer from this post: Fatal error "Allowed memory size" while run setup:static-content:deploy

For clarity, i think what you're looking for is (taken from post mentioned above) you can set the memory limit inline whilst running the static content deploy command:

php -dmemory_limit=6G bin/magento setup:static-content:deploy

Hope this helps.

  • Krishnam, if your happy with my answer can you mark it as acceped and upvote? Thanks. – JoshCarter Jan 19 '18 at 11:04
  • Thanks for the feedback! Votes cast by those with less than 15 reputation are recorded, but do not change the publicly displayed post score. By this reason i can't do upvote. – Krishnam Feb 5 '18 at 7:21
0

Use below command to set server limit just add below code in any of the command if you have any server memory limit error.

-dmemory_limit=6g

like below command check.

php -dmemory_limit=10g bin/magento setup:static-content:deploy
0

Deploy only themes you need, example:

php bin/magento setup:static-content:deploy --theme Magento/blank --theme Magento/luma

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.