Skip to content

Instantly share code, notes, and snippets.

@aloaisa
Forked from wosephjeber/ngrok-installation.md
Created September 28, 2020 14:44
Show Gist options
  • Save aloaisa/3c2e35c8f0041bf3e2c681089ee1c20c to your computer and use it in GitHub Desktop.
Save aloaisa/3c2e35c8f0041bf3e2c681089ee1c20c to your computer and use it in GitHub Desktop.

Revisions

  1. @wosephjeber wosephjeber revised this gist Sep 27, 2019. 1 changed file with 15 additions and 7 deletions.
    22 changes: 15 additions & 7 deletions ngrok-installation.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,17 @@
    #Installing ngrok on OSX
    # Installing ngrok on OSX

    ```shell
    brew cask install ngrok
    ```

    ## Using ngrok
    The easiest way to use ngrok to tunnel into your localhost is if your local project is running on a specific port (e.g. not using named vhosts). You just run `ngrok http [port number]`.

    You can quickly boot up a local webserver using ruby. `cd` into the project's root directory and run `ruby -run -e httpd . -p [port number]`.

    ---

    ## If you don't want to use Homebrew...

    1. [Download ngrok](https://ngrok.com/download)
    2. Unzip it to your Applications directory
    @@ -14,9 +27,4 @@ cd /usr/local/bin
    ln -s /Applications/ngrok ngrok
    ```

    This will allow you to run the `ngrok` command from any directory while in the terminal. Without the symlink, you would need to either `cd` into the Applications directory (or wherever you installed the executable) or reference ngrok with its full path every time (e.g. `/Applications/ngrok 5000`)

    ## Using ngrok
    The easiest way to use ngrok to tunnel into your localhost is if your local project is running on a specific port (e.g. not using named vhosts). You just run `ngrok http [port number]`.

    You can quickly boot up a local webserver using ruby. `cd` into the project's root directory and run `ruby -run -e httpd . -p [port number]`.
    This will allow you to run the `ngrok` command from any directory while in the terminal. Without the symlink, you would need to either `cd` into the Applications directory (or wherever you installed the executable) or reference ngrok with its full path every time (e.g. `/Applications/ngrok 5000`)
  2. @wosephjeber wosephjeber revised this gist Jul 27, 2015. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion ngrok-installation.md
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,9 @@ cd /usr/local/bin
    ln -s /Applications/ngrok ngrok
    ```

    This will allow you to run the `ngrok` command from any directory while in the terminal. Without the symlink, you would need to either `cd` into the Applications directory (or wherever you installed the executable) or reference ngrok with its full path every time (e.g. `/Applications/ngrok 5000`)
    This will allow you to run the `ngrok` command from any directory while in the terminal. Without the symlink, you would need to either `cd` into the Applications directory (or wherever you installed the executable) or reference ngrok with its full path every time (e.g. `/Applications/ngrok 5000`)

    ## Using ngrok
    The easiest way to use ngrok to tunnel into your localhost is if your local project is running on a specific port (e.g. not using named vhosts). You just run `ngrok http [port number]`.

    You can quickly boot up a local webserver using ruby. `cd` into the project's root directory and run `ruby -run -e httpd . -p [port number]`.
  3. @wosephjeber wosephjeber revised this gist Jul 27, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ngrok-installation.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@
    ### Creating a symlink to ngrok
    Run the following two commands in Terminal to create the symlink.
    ```shell
    # Change directories to your local bin
    # cd into your local bin directory
    cd /usr/local/bin

    # create symlink
  4. @wosephjeber wosephjeber revised this gist Jul 27, 2015. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions ngrok-installation.md
    Original file line number Diff line number Diff line change
    @@ -5,11 +5,13 @@
    3. Create a symlink (instructions below)

    ### Creating a symlink to ngrok
    Run the following two commands in Terminal to create the symlink
    Run the following two commands in Terminal to create the symlink.
    ```shell
    # Change directories to your local bin
    cd /usr/local/bin

    # create symlink
    ln -s /Applications/ngrok ngrok
    ```
    ```

    This will allow you to run the `ngrok` command from any directory while in the terminal. Without the symlink, you would need to either `cd` into the Applications directory (or wherever you installed the executable) or reference ngrok with its full path every time (e.g. `/Applications/ngrok 5000`)
  5. @wosephjeber wosephjeber created this gist Jul 27, 2015.
    15 changes: 15 additions & 0 deletions ngrok-installation.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #Installing ngrok on OSX

    1. [Download ngrok](https://ngrok.com/download)
    2. Unzip it to your Applications directory
    3. Create a symlink (instructions below)

    ### Creating a symlink to ngrok
    Run the following two commands in Terminal to create the symlink
    ```shell
    # Change directories to your local bin
    cd /usr/local/bin

    # create symlink
    ln -s /Applications/ngrok ngrok
    ```