Last active
February 21, 2017 17:56
-
-
Save Marko-M/589d584b81fce3c0f66d to your computer and use it in GitHub Desktop.
Activate maintenance mode on Magento 2 w/ IP address exclusion list
This file contains hidden or 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
#!/bin/bash | |
# Comma separated list of IPs to be excluded | |
echo "123.123.123.123,234.234.234.234">var/.maintenance.ip | |
# For the rest of the world we go down for maintenance NOW | |
touch var/.maintenance.flag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! Clear and to the point, I understood this a lot quicker than the actual doc at http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-subcommands-maint.html