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!

Dalton Cézane
  • 3,672
  • 2
  • 35
  • 60
D. Kerat
  • 103
  • 1
  • 1
  • 8

2 Answers2

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!

robsch
  • 9,358
  • 9
  • 63
  • 104
Anoxy
  • 873
  • 7
  • 17
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

web master
  • 255
  • 2
  • 8