R
Railway5mo ago
tayla

Cloudflare - Application failed to respond

Hello! My app is working with test domain. But with custom it doesn't work. I see "Cloudflare proxy detected", but I get Bad gateway Error code 502 or Application failed to respond pages. How do i fix it? Thx.
Solution:
"start": "node ./dist/server/entry.mjs",
Jump to solution
26 Replies
Percy
Percy5mo ago
Project ID: 841ba519-e06f-4b85-b455-2b2846dd440e
tayla
taylaOP5mo ago
841ba519-e06f-4b85-b455-2b2846dd440e
Brody
Brody5mo ago
send the railway domain please
tayla
taylaOP5mo ago
findminiapp-production.up.railway.app
Brody
Brody5mo ago
okay and the Cloudflare domain too please
Brody
Brody5mo ago
what kind of app is this
tayla
taylaOP5mo ago
Astro SSR
Brody
Brody5mo ago
what is your start command?
tayla
taylaOP5mo ago
npm start
Brody
Brody5mo ago
what is your start script
tayla
taylaOP5mo ago
No description
tayla
taylaOP5mo ago
No description
Brody
Brody5mo ago
your start script is starting a development server, please change it to start the built app
tayla
taylaOP5mo ago
I will try, thank you, but meanwhile, it works with railway domain somehow?
Brody
Brody5mo ago
its unfortunate that it does, as running a development server would be costly
tayla
taylaOP5mo ago
unfortunately didn't work
tayla
taylaOP5mo ago
No description
Brody
Brody5mo ago
im not sure how that related to what i suggested, besides, the build command was already being ran and there was no issues with it
tayla
taylaOP5mo ago
I'm not sure I understand what you suggested. I tried to deploy with built command. What am I doing wrong? Sorry, i'm a newbie
Brody
Brody5mo ago
run npm run build locally and then show me the contents of the built directory
tayla
taylaOP5mo ago
No description
tayla
taylaOP5mo ago
@Brody I uderstood my mistake and found your answer in another topic
Solution
tayla
tayla5mo ago
"start": "node ./dist/server/entry.mjs",
tayla
taylaOP5mo ago
this command worked Thank you a lot for guiding me!
Brody
Brody5mo ago
no problem!
Want results from more Discord servers?
Add your server