502 Bad Gateway error when accessing Laravel Livewire deployment on public domain

techmedafrica
HOBBY

a year ago

I can't seem to get the port bindings right for my project. Its a Laravel Livewire application.

Deployment binds to port 8080.

My build command is as follows:

NIX_PACKS_BUILD_CMD=npm run build && php artisan migrate --force

Final deployment log entry is

...

Aug 24 13:40:26

3ea65b84

[server:info] Server starting on port 8080

My Network settings are as follows: ecmp-production.up.railway.app Port: 9000

I've had no luck trying the following alternative configurations:

  • adding a PORT variable in my .env file and setting it to 9000 or 8080

  • adding php artisan serve --port 9000 to the build command

Solved

2 Replies

angelalmanza
HOBBY

a year ago

In my case this worked for me:
I changed the port in my project settings, go to network section and edit the port, in your case 8080, save and test


angelalmanza

In my case this worked for me:I changed the port in my project settings, go to network section and edit the port, in your case 8080, save and test

ruddyg4
TRIAL

10 months ago

Thanks! that worked for me too!


Status changed to Solved brody 11 months ago


Loading...