Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't deploy production mode : Command returned non-zero exit code (magento 2.1)

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!

like image 352
D. Kerat Avatar asked Jul 21 '17 20:07

D. Kerat


1 Answers

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!

like image 71
Anoxy Avatar answered Oct 10 '22 05:10

Anoxy