Skip to main content

Testing local DDEV site

If you would like to test your local DDEV environment you can use ngrok to make it available online and then create "custom" screenshots from it.

How to Take Screenshots from Your Local DDEV Environment - Watch Video

Here are the steps.

 

Set up ngrok

If you like, I can share with you Diffy's account for testing purposes. Once it works you can purchase your Personal license yourself.

1. Create an account at https://ngrok.com/, purchase the license

2. Install ngrok locally (for Mac it is simple brew install ngrok)

3. Populate auth code locally ngrok config add-authtoken <your token>

Configure ngrok

 

DDEV setup

Now you can expose your local site globally by running ddev share

DDEV share

Remember to copy the URL from ngrok.

 

Create custom screenshot with Diffy

Now you can create screenshots from a custom environment. Specify URL you got from ngrok.

Important notice -- as we can easily overload your local environment set the number of non-production workers to 5.

custom screenshots