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
2 years ago
please see this docs page
already checked that page and added RAILWAYTCPPROXY_PORT 1337 to env variables not sure if that was the right move though
2 years ago
yeah whats going on with these images?
2 years ago
that is not the move at all, please read the docs page i linked
2 years ago
or just use this server.js file
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
2 years ago
^
2 years ago
though you seem to only be skim reading the docs page i linked
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
2 years ago
you are also skim reading what im saying 🫤
2 years ago
i never said to use the strapi template
2 years ago
please do
2 years ago
^
2 years ago
indeed
2 years ago
just use this server.js file
the deployment log within Railway shows me it's running on 0.0.0.0:1337 ( i can't screenshot for some reason)
2 years ago
just use this server.js file
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
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
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
from your linked server.js
what's in URL? Is that the URL provided by Railway?
and the proxy is missing from mine too
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

