Strapi Deployment "Application failed to respond"
Anonymous
TRIALOP

2 years ago

Hello,
my deployment went through and the build logs tell me the Strapi server is running. (see Screenshot)
However when i hit the url in the browser it says application failed to respond.
I feel like i forgot one step or something?

30 Replies

Anonymous
TRIALOP

2 years ago

ae636797-2246-45a3-932b-d4ac5d3c047e


brody
EMPLOYEE

2 years ago

please see this docs page


Anonymous
TRIALOP

2 years ago

1217907458710700300


Anonymous
TRIALOP

2 years ago

already checked that page and added RAILWAYTCPPROXY_PORT 1337 to env variables not sure if that was the right move though


Anonymous
TRIALOP

2 years ago

can i not upload picture in here?


brody
EMPLOYEE

2 years ago

yeah whats going on with these images?


brody
EMPLOYEE

2 years ago

that is not the move at all, please read the docs page i linked


brody
EMPLOYEE

2 years ago

or just use this server.js file


Anonymous
TRIALOP

2 years ago

i read it again maybe i dont understand. it says to put the host to 0.0.0.0 and port to whatever it provides but i don't see a service variable "port". let me try one more screenshot


Anonymous
TRIALOP

2 years ago

1217908327799984000


brody
EMPLOYEE

2 years ago

^


brody
EMPLOYEE

2 years ago

though you seem to only be skim reading the docs page i linked


Anonymous
TRIALOP

2 years ago

i don't really want to use the Strapi template. I got a monorepo setup and the database is already deployed and i can connect to it form my local maschine


brody
EMPLOYEE

2 years ago

you are also skim reading what im saying 🫤


brody
EMPLOYEE

2 years ago

i never said to use the strapi template


Anonymous
TRIALOP

2 years ago

let me read again


brody
EMPLOYEE

2 years ago

please do


brody
EMPLOYEE

2 years ago

^


Anonymous
TRIALOP

2 years ago

okay you linked me a server.js


brody
EMPLOYEE

2 years ago

indeed


Anonymous
TRIALOP

2 years ago

let me compare that to mine one sec


brody
EMPLOYEE

2 years ago

just use this server.js file


Anonymous
TRIALOP

2 years ago

.env being


Anonymous
TRIALOP

2 years ago

the deployment log within Railway shows me it's running on 0.0.0.0:1337 ( i can't screenshot for some reason)


brody
EMPLOYEE

2 years ago

just use this server.js file


Anonymous
TRIALOP

2 years ago

Not trying to be difficult but do you see an issue with my server.js file?
I can't really just change it since it's a monorepo


brody
EMPLOYEE

2 years ago

yes but i would like for you to come to the conclusion as to why its wrong, for that, you need to read the docs page i linked


brody
EMPLOYEE

2 years ago

I can't really just change it since it's a monorepo
im sorry, i cant see how that in any way would prevent you from using the server.js file i linked


Anonymous
TRIALOP

2 years ago

from your linked server.js
what's in URL? Is that the URL provided by Railway?

and the proxy is missing from mine too


Anonymous
TRIALOP

2 years ago

Okay i got it working. Thanks for pointing me in the right direction. With your method of helping i will not forget what i learned


Loading...