Setup ngrok instantly at VCCW.
Install ngrok by Homebrew.
$ brew cask install ngrok
Please run the follwoing command in the directory where your Vagrantfile
is located.
$ git clone https://github.com/naogify/wp-ngrok.git
$ bash wp-ngrok.sh
It will ask you to type your development url.ใSo, please type it. Then it will publish temporary url that anyone can access. You can easily unpublish the url by closing the terminal.
Please check https://ngrok.com/docs to get more information about ngrok.
This shell script will install relative-url pluguin to replace WordPres's absolute url to relative url.
Then it changes WP_SITEURL
& WP_HOME
to http://'.$_SERVER['HTTP_HOST']
by modifying wp-config.php ( This wp-config.php
is the one at the same directory where Vagrantfile
is located ).
So, please Don't forget to remove relative-url plugin when you move the WordPress from develop environment to your production environment,