Sha256: ea73c3287a5fd3d69462880f21af86b01adb121aae4387060b34ff1b75bb15b1

Contents?: true

Size: 1.19 KB

Versions: 17

Compression:

Stored size: 1.19 KB

Contents

# HTTP Tunneling with ngrok

Before your application can take advantage of features that depend on incoming webhooks, you'll need to setup an HTTP tunnel using a service like [ngrok](https://ngrok.com).

## Use a Paid Plan

You should specifically sign up for a paid account. Although ngrok offers a free plan, their $25/month paid plan will allow you to reserve a custom subdomain for reuse each time you spin up your tunnel. This is a critical productivity improvement, because in practice you'll end up configuring your tunnel URL in a bunch of different places like `config/application.yml` but also in external systems like when you [configure payment providers to deliver webhooks to you](/docs/billing/stripe.md).

## Usage

Once you have ngrok installed, you can start your tunnel like so, replacing `YOUR-SUBDOMAIN` with whatever subdomain you reserved in your ngrok account:

```
ngrok http 3000 --subdomain=YOUR-SUBDOMAIN
```

## Updating Your Configuration

Before your Rails application will accept connections on your tunnel hostname, you need to update `config/application.yml` with:

```
BASE_URL: https://YOUR-SUBDOMAIN.ngrok.io
```

You'll also need to restart your Rails server:

```
rails restart
```

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bullet_train-1.2.27 docs/tunneling.md
bullet_train-1.2.26 docs/tunneling.md
bullet_train-1.2.25 docs/tunneling.md
bullet_train-1.2.24 docs/tunneling.md
bullet_train-1.2.23 docs/tunneling.md
bullet_train-1.2.22 docs/tunneling.md
bullet_train-1.2.21 docs/tunneling.md
bullet_train-1.2.20 docs/tunneling.md
bullet_train-1.2.19 docs/tunneling.md
bullet_train-1.2.18 docs/tunneling.md
bullet_train-1.2.17 docs/tunneling.md
bullet_train-1.2.16 docs/tunneling.md
bullet_train-1.2.15 docs/tunneling.md
bullet_train-1.2.14 docs/tunneling.md
bullet_train-1.2.13 docs/tunneling.md
bullet_train-1.2.12 docs/tunneling.md
bullet_train-1.2.11 docs/tunneling.md