zomh
zomh
Explore posts from servers
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
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
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
from your linked server.js what's in URL? Is that the URL provided by Railway?
url: env('URL'),
proxy: true
url: env('URL'),
proxy: true
and the proxy is missing from mine too
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
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
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
the deployment log within Railway shows me it's running on 0.0.0.0:1337 ( i can't screenshot for some reason)
To manage your project 🚀, go to the administration panel at:
http://0.0.0.0:1337/admin
To access the server ⚡️, go to:
http://0.0.0.0:1337
To manage your project 🚀, go to the administration panel at:
http://0.0.0.0:1337/admin
To access the server ⚡️, go to:
http://0.0.0.0:1337
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
import type { EnvFunction } from "../types/shared/env";

export default ({ env }: { env: EnvFunction }) => ({
host: env("BACKEND_HOST", "0.0.0.0"),
port: env.int("BACKEND_PORT", 1337),
app: {
keys: env.array("BACKEND_APP_KEYS"),
},
webhooks: {
populateRelations: env.bool("BACKEND_WEBHOOKS_POPULATE_RELATIONS", false),
},
});
import type { EnvFunction } from "../types/shared/env";

export default ({ env }: { env: EnvFunction }) => ({
host: env("BACKEND_HOST", "0.0.0.0"),
port: env.int("BACKEND_PORT", 1337),
app: {
keys: env.array("BACKEND_APP_KEYS"),
},
webhooks: {
populateRelations: env.bool("BACKEND_WEBHOOKS_POPULATE_RELATIONS", false),
},
});
.env being
BACKEND_HOST=0.0.0.0 # *
BACKEND_PORT=1337 # *
BACKEND_HOST=0.0.0.0 # *
BACKEND_PORT=1337 # *
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
let me compare that to mine one sec
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
okay you linked me a server.js
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
let me read again
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
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
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
No description
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
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
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
can i not upload picture in here?
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
already checked that page and added RAILWAY_TCP_PROXY_PORT 1337 to env variables not sure if that was the right move though
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
No description
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
ae636797-2246-45a3-932b-d4ac5d3c047e
33 replies