Anyone knows How to set deploy mode to production (in NGINX and Apache config).

Thanks for your collaborations.

  • is this worked? OW , idea is worked:)
    – Amit Bera
    Nov 2 '17 at 10:34

You can set production mode from apache config files.by set-up environment variable

Add below code at config

SetEnv MAGE_MODE "production"

For ngnix at config file

location / {
   fastcgi_param   MAGE_MODE  production; #MAGE_MODE = production

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.