Application failed to respond after deploying laravel app (502 Error)
tulipreactjsmain
FREEOP

10 months ago

I have been on this for hours, someone please help, this is urgent.. switched to port 8080 and didn't work still.

Application failed to respond
This error appears to be caused by the application.

If this is your project, check out your deploy logs to see what went wrong. Refer to our docs on Fixing Common Errors for help, or reach out over our Help Station.

If you are a visitor, please contact the application owner or try again later.

Project ID: 505d606b-64b3-4071-8bb0-1ca8767ee31c

43 Replies

medim
MODERATOR

10 months ago

Hey! Did u try following our guide on how to deploy a laravel app?
https://docs.railway.com/guides/laravel


medim
MODERATOR

10 months ago

There's even a 1-click-deploy template that you can use as a base for your app!


tulipreactjsmain
FREEOP

10 months ago

Well i deployed it manually by choosing the project from github and including all the necessary ENVs .The deployment is successful but i get 502 error


tulipreactjsmain
FREEOP

10 months ago

1365365757948596200



tulipreactjsmain
FREEOP

10 months ago

Help please


medim
MODERATOR

10 months ago

Are you sure that your app listens on port 8080?


brody
EMPLOYEE

10 months ago

if you notice the deploy status it says COMPLETED meaning nothing is actually running


tulipreactjsmain
FREEOP

10 months ago

okay


tulipreactjsmain
FREEOP

10 months ago

So what do i do ?


samgordon
PRO

10 months ago

Is your startup command right? Is your application correct? It’s not a Railway issue as is


tulipreactjsmain
FREEOP

10 months ago

It's work super fine in development


samgordon
PRO

10 months ago

Containerized?


samgordon
PRO

10 months ago

The console suggests it’s literally not running, so I would expect a startup command issue


samgordon
PRO

10 months ago

I also have no idea how Laravel works but I assume it’s not static


samgordon
PRO

10 months ago

I would recommend creating a default laravel template and then copy over some values. That's what I did to make my Mongo app work with my custom image.


tulipreactjsmain
FREEOP

10 months ago

Thank you


tulipreactjsmain
FREEOP

10 months ago

I'm trying now


tulipreactjsmain
FREEOP

10 months ago

I deleted my docker file and now it's working but with a new erro

1365389647814852600


tulipreactjsmain
FREEOP

10 months ago

i had a custom dockerfile, had to get rid of it in production… now i'm using railpack builder


samgordon
PRO

10 months ago

No idea what railpack builder is


samgordon
PRO

10 months ago

But that's definitly an issue with your app now


adam
MODERATOR

10 months ago

railpack is railways new builder


adam
MODERATOR

10 months ago

and yes, it’s a code issue at this point


adam
MODERATOR

10 months ago

more robust logging will help you diagnose the issue


samgordon
PRO

10 months ago

😂 Literally started using Railway yesterday, cool


samgordon
PRO

10 months ago

No rust?!?!?

1365392022541959200


medim
MODERATOR

10 months ago

1365393572513186000


samgordon
PRO

10 months ago

Hey I know Docker 😭


samgordon
PRO

10 months ago

I'm going to stick to my Dockerfiles


brody
EMPLOYEE

10 months ago

did you just make this lol


medim
MODERATOR

10 months ago

yes


medim
MODERATOR

10 months ago

is it good?


brody
EMPLOYEE

10 months ago

yes


medim
MODERATOR

10 months ago

even better, then my meme helped you understand what railpack does


samgordon
PRO

10 months ago

unfortunately.


tulipreactjsmain
FREEOP

10 months ago

Working now but a new error again :

Mixed Content: The page at 'https://laravel-staging-production.up.railway.app/login' was loaded over HTTPS, but requested an insecure stylesheet 'http://*laravel-staging-production.up.railway.app/build/assets/app-B44XnbEb.css'. This request has been blocked; the content must be served over HTTPS.


tulipreactjsmain
FREEOP

10 months ago

🥲


tulipreactjsmain
FREEOP

10 months ago

Sorry guys… I am migrating from cloudways to railway.. i didn't face any of these with cloudways


adam
MODERATOR

10 months ago

That's another code issue. You will need to Google that for yourself


medim
MODERATOR

10 months ago

I'm no laravel dev but after a quick google session you might want to take a look at the URL::forceScheme('https'); function


tulipreactjsmain
FREEOP

10 months ago

yes


tulipreactjsmain
FREEOP

10 months ago

i've done that


Loading...