Skip to content

Instantly share code, notes, and snippets.

@chris-huffman
Created December 9, 2020 22:35
Show Gist options
  • Save chris-huffman/228338ed17dc72f2d697280e9c68370d to your computer and use it in GitHub Desktop.
Save chris-huffman/228338ed17dc72f2d697280e9c68370d to your computer and use it in GitHub Desktop.
Force a local site to run in production mode
From within vagrant:
* $ sudo vi /etc/httpd/conf.d/httpd.conf
* SetEnv MAGE_IS_DEVELOPER_MODE 0
* SetEnv MAGE_MODE production
* $ MAGE_MODE=production
* $ bin/magento deploy:mode:set production
* $ sudo systemctl restart httpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment