Created
December 9, 2020 22:35
-
-
Save chris-huffman/228338ed17dc72f2d697280e9c68370d to your computer and use it in GitHub Desktop.
Force a local site to run in production mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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