Laravel

Reverb (Production Issues)

Hi Guys,

I'm having really strange issues with reverb on a production site. I've been following this course by (Alex) Realtime with Laravel Reverb and it workis perfectly on (Herd/Valet/Local), but as soon as I try to install it on a live server (via Laravel Forge) I get errors like this:

WebSocket connection to 'wss://data-cloud.test:8080/app/a5sokxlpubir0yddvrv6?protocol=7&client=js&version=8.4.0&flash=false' failed:  pusher.js:3742 

The first issue is that its not working, the next issue is the error is displaying my herd/valet localhost domain, no matter what I have tried it will not work on a live server.

Ive added everything required such as cname EG: ws.mydomain.com resolves successfully in the browser. I'm at a complete stumbling block here, does anyone know what the issues might be here?

One last issue, I've also disabled the Laravel Reverb option on Laravel forge and when I try to re-enable reverb via the 'Application' tab on reverb, its now producing an error message: The host has already been taken.

Any help here would be greatly appreciated .

Thanks in advance! @alex

richard54530
richard54530
0
4
117
alex Member
alex
Moderator

Hey Richard, sorry for the late reply. If you haven't solved this already, have you seen the Reverb deployment course?

Let me know if you still need help on this and we'll figure it out!

richard54530
richard54530

Hi Alex,

Thats no problem at all.

Yes I have watched it and it s afantastic walk through. Everything works to a point and as mentioned above, no matter what I do, it always displays errors on my live server relating to my development server. Its such a weird issue.

naimulislam
naimulislam

Which web server are you using? nginx or apache

richard54530
richard54530

nginx, but I'm setting it up via laravel forge. My understanding is that, forge handles thats side of things.