skip to Main Content

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


  1. 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!

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search