/box-ngrok

Ngrok intergration with CommandBox

Primary LanguageColdFusionMIT LicenseMIT

box-ngrok

Ngrok integration with CommandBox

Ngrok is a service that will proxy a locally-running server to the Internet where any coworker, friend, or client with a browser can view the local site site you have running. Use this to demo a new site or ask a friend to look at an error for you. This is also great for testing integration with 3rd party systems (like Stripe webhooks) while still developing on localhost!

Usage

Use the commands that come with this module to start and stop Ngrok shares.

Start a share

server share start
# or
share

It will:

  1. Start the CommandBox server if it is not already running.
  2. Start Ngrok using the embedded binaries for your platform.
  3. Stop any currently open Ngrok tunnels (since the free version only allows one at a time).
  4. Create the new Ngrok tunnel.
  5. Display the share url.
  6. Open the share url in the browser.

Stop a share

server share stop
# or
unshare

If you stop a server that is being shared, the Ngrok tunnel will be closed for you.