I tried to put my website into Production mode.

For this, I used the following command on SSH but it get stuck.

php bin/magento deploy:mode:set production

Please refer to the following screenshot.

enter image description here

  • try deploying the static content separately after compilation if it stuckes in the same process. – Mohammad Mujassam Jan 21 '19 at 9:50

Please try following command to skip compilation, so you can directly set production mode without any compilation or static content deploy.

php bin/magento deploy:mode:set production --skip-compilation

  • we should have compiled code in production, skipping it is not recommended. – Mohammad Mujassam Jan 21 '19 at 9:51
  • 1
    Yes you are right, but if you want to set on production mode then first set to production mode, we can run compilation anytime after that, some time some its not working because of third party extension. – Aasim Goriya Jan 21 '19 at 9:56
  • so we can use --skip-compilation temperory – Aasim Goriya Jan 21 '19 at 9:57
  • @AasimGoriya Hi, how can i compile the code after production mode? – Kaizen Tamashi Jan 22 '19 at 2:32
  • @KevinLee you can run this command for compilation. : php bin/magento setup:di:compile – Aasim Goriya Jan 22 '19 at 5:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.