Skip to content
Jami Dwyer edited this page Oct 23, 2015 · 7 revisions

Sign up: https://ngrok.com/

Instructions and authtoken: https://dashboard.ngrok.com/

Run:

brew cask install ngrok

ngrok authtoken YOUR_TOKEN_FROM_NGROK_DASHBOARD

Add this to httpd-vhosts.conf in your Sites folder: <VirtualHost *:8080>
 ServerName ngrok.io
 ServerAlias *.ngrok.io
 CustomLog "/Users/YOURCOMPUTERNAME/Sites/logs/dev-access_log" combinedmassvhost
 ErrorLog "/Users/YOURCOMPUTERNAME/Sites/logs/dev-error_log"
 VirtualDocumentRoot /Users/YOURCOMPUTERNAME/Sites/%0
</VirtualHost>

(Note that the path to the logs needs to be correct! And linebreaks might break everything.)

In /private/etc/hosts, set: 127.0.0.1 [SUBDOMAIN].ngrok.com

Then run: ngrok http -hostname=[SUBDOMAIN].ngrok.io 8080

Now install your build into ~/Sites/[SUBDOMAIN].ngrok.io.

You should be able to load your site at [SUBDOMAIN].ngrok.io.

Clone this wiki locally