9

I'm struggling with a big issue, the magento deployment command failed.

php bin/magento deploy:mode:set production

return the following error:

Command returned non-zero exit code: /usr/bin/php7.0 -f bin/magento setup:static-content:deploy fr_FR en_US

Thanks in advance!

6

2 Answers 2

18

As stated in comments try setting your php memory limit higher what i do however is the following:

php bin/magento deploy:mode:set --skip-compilation production

and then:

php bin/magento setup:di:compile

This way you should avoid the memory limit error and it works the same way as the deploy command is intended to only downside is 2 commands instead of one.

Cheers!

0

I used the answer that @Anoxy posted. It was kicked into production mode.

When I tried to run setup:di:compile after that, I got an error about a class in which I had called ::parent on Context.

That stopped compile from running, because Context doesn't have a parent that can be constructed.

I removed the parent call, and it ran

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

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.