#DDEV with laravel bootcamp error : white page

9 messages · Page 1 of 1 (latest)

crude plover
#

Hello

I tried to follow the bootcamp tutorial for laravel by building chirper with Inertia https://bootcamp.laravel.com/inertia/installation

You can use the cms quick start here https://ddev.readthedocs.io/en/stable/users/quickstart/

I first got an error CONNECTION_REFUSED after activating the npm run dev.

I modified the configuration of the ddev a bit to allow the port 5173

services:
web:
ports:
- "5173:5173"

And now I get the EMPTY_RESPONSE error

Together let's walk through building and deploying a modern Laravel application from scratch.

hardy meadow
#

Looks like you'd need to expose the Vite ports properly and setup the HMR proxy, a quick search shows me a few results like this: https://github.com/mandrasch/ddev-laravel-vite#how-was-this-created
That said, I don't use ddev, so no clue how it actually works or what it is, just seems like your frontend can't reach the Vite dev server, so you'd have to open those ports and configure Vite

crude plover
#

Thanks, I will give it a try

#

Already opened some port but maybe I didn't do it properly

#

Or rather, I am sure I didn't do it properly 😄

crude plover
#

And I can confirm that it is working

#

Thanks a lot 🙂

#

I tried to use sail but it took 30 mns to set up

#

and in the end there was a weird error