Strapi Deployment "Application failed to respond"
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?
Solution:Jump to solution
please see this docs page https://docs.railway.app/guides/fixing-common-errors
23 Replies
Project ID:
ae636797-2246-45a3-932b-d4ac5d3c047e
ae636797-2246-45a3-932b-d4ac5d3c047e
Solution
please see this docs page https://docs.railway.app/guides/fixing-common-errors
already checked that page and added RAILWAY_TCP_PROXY_PORT 1337 to env variables not sure if that was the right move though
can i not upload picture in here?
yeah whats going on with these images?
that is not the move at all, please read the docs page i linked
or just use this server.js file https://github.com/railwayapp-templates/strapi/blob/main/config/server.js
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
^
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
you are also skim reading what im saying 🫤
i never said to use the strapi template
let me read again
please do
^
okay you linked me a server.js
indeed
let me compare that to mine one sec
just use this server.js file
.env being
the deployment log within Railway shows me it's running on 0.0.0.0:1337 ( i can't screenshot for some reason)
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
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
I can't really just change it since it's a monorepoim 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