Ngrok for Magento2 local test
This script can help you easily to test for request which require "https",
it will replace the base url of your magento2 project, and restore the base url when exit this script.
-
install Ngrok and copy the command to /usr/bin/
-
add one server name for your nginx config of your magento2 project.
server {
server_name *.ngrok.io; #add this line in server term
}
- go to your magento2 project root directory first, then run the script.
# cd /to/your/magento2/project/
#/path/to/ngrok-for-magento2.py -l=LOCALDOMAIN -r=RESTOREDOMAIN
Add additional notes about how to deploy this on a live system
- Glenn Checg - NgrokForMagento2 - Glenn Checg
See also the list of NgrokForMagento2 who participated in this project.