Skip to content
Application failed to respond after deploying laravel app (502 Error)
tulipreactjsmain
OP

2 years 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

Closed

43 Replies

2 years ago

Hey! Did u try following our guide on how to deploy a laravel app?

https://docs.railway.com/guides/laravel


2 years ago

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


tulipreactjsmain
OP

2 years 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
OP

2 years ago



tulipreactjsmain
OP

2 years ago

Help please


2 years ago

Are you sure that your app listens on port 8080?


2 years ago

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


tulipreactjsmain
OP

2 years ago

okay


tulipreactjsmain
OP

2 years ago

So what do i do ?


2 years ago

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


tulipreactjsmain
OP

2 years ago

It's work super fine in development


2 years ago

Containerized?


2 years ago

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


2 years ago

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


2 years 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
OP

2 years ago

Thank you


tulipreactjsmain
OP

2 years ago

I'm trying now


tulipreactjsmain
OP

2 years ago

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

1365389647814852648


tulipreactjsmain
OP

2 years ago

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


2 years ago

No idea what railpack builder is


2 years ago

But that's definitly an issue with your app now


2 years ago

railpack is railways new builder


2 years ago

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


2 years ago

more robust logging will help you diagnose the issue


2 years ago

😂 Literally started using Railway yesterday, cool


2 years ago

No rust?!?!?

1365392022541959232



2 years ago

Hey I know Docker 😭


2 years ago

I'm going to stick to my Dockerfiles


2 years ago

did you just make this lol


2 years ago

yes


2 years ago

is it good?


2 years ago

yes


2 years ago

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


2 years ago

unfortunately.


tulipreactjsmain
OP

2 years 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
OP

2 years ago

🥲


tulipreactjsmain
OP

2 years ago

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


2 years ago

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


2 years 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
OP

2 years ago

yes


tulipreactjsmain
OP

2 years ago

i've done that


Welcome!

Sign in to your Railway account to join the conversation.

Loading...