Blog

Brad Wood

December 20, 2016

Spread the word


Share your thoughts

Christmas is a time of sharing here at Ortus HQ.  That's why we're sharing this 12 Tips of (CommandBox) Christmas with you.  You may also want to share your hard work with others as well such as co-workers, far away clients, or your mom.  Luckily for you, there's a community Ngrok module that allows you to do just that-- instantly demo a local CommandBox site to anyone in the world via a private URL.  

Ngrok Server Shares

If you haven't heard of Ngrok, it's a service that allows you to create a temporary network proxy between your local computer and a private URL you can send to anyone else on the Internet.  Eric Peterson has done the hard work of wrapping up the Ngrok functionality in a CommandBox module that installs quickly and easily and will allow you to share any local CommandBox server with a single command.  

Installation

Installation of Ngrok is a one-time action and is as easy as this command. 

CommandBox> install box-ngrok

Usage

The Ngrok module won't share anything without you asking to.  When you want to start a share, you just need to run this command from the web root of the server.

CommandBox> server share

That's it!  Here's what the module will do:

  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 to the screen
  6. Open the share URL in the browser

Anyone who hits that URL in their browser will view the site directly off your local CommandBox server.  Use this to demo features to a client who wants to actually use the new site or to expose web hook for quick testing.  When you're done, you can shut down the server or just stop the share.

CommandBox> server share stop

 

Add Your Comment

Recent Entries

Thanksgiving Day deals: Access Exclusive Discounts Until November 30th!

Thanksgiving Day deals: Access Exclusive Discounts Until November 30th!

Prepare for the Ortus Thanksgiving Day Deals! This is your chance to enhance your development journey with amazing deals catered to everyone—from experienced developers to tech aficionados. Our unique offers are crafted to assist you in reaching your objectives while conserving your budget!

Don't Let These Incredible Offers Slip Away!

Utilize the code THKSGIVING24 at checkout to take advantage of these fantastic discounts before they end...

Cristobal Escobar
Cristobal Escobar
November 04, 2024
BoxLang Newsletter: October 2024

BoxLang Newsletter: October 2024

Welcome to the October edition of the BoxLang Newsletter! **This month has been packed with exciting updates, new features, and enhancements that continue to shape BoxLang into a robust and versatile programming language. In this edition, we highlight the latest beta releases, new integrations, and key features that have been introduced.

Maria Jose Herrera
Maria Jose Herrera
November 04, 2024
BoxLang 1.0.0 Beta 21 Launched

BoxLang 1.0.0 Beta 21 Launched

This release brings another round of powerful tools and refinements to the BoxLang community, making development more dynamic and robust than ever. We’ve added new capabilities for debugging and tracing, expanded context-sensitive controls for thread management, and introduced new methods for fluent attachment handling.

For deeper flexibility, our improvements enhance configurability, streamline session control, and add deeper levels of JSON serialization management. Plus, we’ve squashed a wide range of bugs, enhancing stability across database connections, date handling, and runtime compatibility with CFML.

In addition, CSRF Token functionality is now provided via the bx-csrf module.

Luis Majano
Luis Majano
November 01, 2024