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

Viewed 8927

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

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

Related