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!
2
Answers
As stated in comments try setting your php memory limit higher what i do however is the following:
and then:
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!
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