Skip to content

Commit

Permalink
Update documentation with Valet share info
Browse files Browse the repository at this point in the history
  • Loading branch information
sten committed May 4, 2022
1 parent b658966 commit 198fe40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 0 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,3 @@ All notable changes to `statikbe/laravel-puppeteer-pdf-converter` will be docume
## v1.0.0 - 2022-04-27

First version

## Version 1.0.0

### Added

Initial version
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,21 @@ See section *Local development* for an example.
## Local development

The PDF conversion service runs in the cloud. For local development, you can run it locally or use a tunneling service
to expose your local web server. Examples of such tunneling software is [Ngrok](https://ngrok.com/) or [Expose](https://expose.dev/).
to expose your local web server. Examples of such tunneling software is [Ngrok](https://ngrok.com/) or [Expose](https://expose.dev/).
Or if you use [Valet](https://laravel.com/docs/9.x/valet), there is a [sharing command](https://laravel.com/docs/9.x/valet#sharing-sites)

```bash
valet share
```

If you use Ngrok, you can start the service (replace `APP_URL` with the value of the `APP_URL` key in your `.env` file):

```bash
ngrok http -host-header=APP_URL 80
```

You can then configure the tunneled URL in the `.env` file with key `NGROK_APP_URL`. For example:
You can then configure the tunneled URL in the `.env` file with key `NGROK_APP_URL`. You can also set URLs of Valet or Expose
in this variable. For example:

```
NGROK_APP_URL=http://dba0-94-224-113-240.ngrok.io
Expand Down

0 comments on commit 198fe40

Please sign in to comment.