R
Railway

✋|help

Web Server Not Working

M1michael_9/10/2023
I just started a small simple web server. I generated a custom domain for now, and when trying to access it I'm being met with Application failed to respond
M1michael_9/10/2023
5cbfb706-f70d-4814-9834-3f94646c5518
Ffragly9/10/2023
did you use env.PORT for your port?
M1michael_9/10/2023
No I just used 3000 hard coded
Ffragly9/10/2023
You should use env.PORT then
only works if you use the port railway provides
Mmantisinabox9/10/2023
If you used 3000 hard coded, set env variable of PORT to 3000 in your service
Ffragly9/10/2023
oh you can do that?
M1michael_9/10/2023
ok
Mmantisinabox9/10/2023
Yup
Ffragly9/10/2023
is that new?
Mmantisinabox9/10/2023
Nope
Ffragly9/10/2023
dang
Mmantisinabox9/10/2023
It's better to listen on the port provided, but if you specify it in your code or if it's a docker image, you can set it manually
M1michael_9/10/2023
so wait am I able to just not create a port variable on railway
Mmantisinabox9/10/2023
Yes, you can create an environment variable in your service and call it PORT and give it the value of 3000
Mmantisinabox9/10/2023
Like this
M1michael_9/10/2023
Okay thank you

Looking for more? Join the community!

Recommended Posts
http://0.0.0.0:8000 to urlI am using a Django REST framework. When I query the URL at 0.0.0.0:8000 I can get a response, but aOpenSearch deploymentHi everyone. I require assistance with deploying an instance of OpenSearch since I get an error durUnable to connect with private networkHey guys, I'm a bit unsure on how to use the internal network. I have a .net api that has a privaterclone on railway to transfer data from one cloud to an other.Hello, I'm creating an app the requires to transfer data from one cloud storage (like onedrive to aBun 1.0 on railwayI am spinning up a simple bun app with 1 file in it. But for some reason all of my builds are failinSocket cannot be archivedWhen building the railway project I get a message saying that: /Users/x/Library/Application SupportBUN 1.0 + AstroHas anyone tried to deploy a Bun app yet? I am getting this error. ERROR: failed to solve: processDjango Railway admin consoleHi! I've had a really good time using Railway thus far, sea-change from setting up an EC2 instance Trouble sending emails via SMTPprojectId: `bb66f5c0-53f9-4e9f-b11f-5965f5d6ec74` serviceId: `b3029692-b78a-4487-bcb0-44e001afecb8` Cannot have a TCP proxy and a domainWhen trying to create a service with a proxy, I'm getting this error. Can I not have a TCP proxy serChange region for Postgres DatabaseHey ! Congratulations for the launch of deployment region ! Now, how can I migrate my db to another Connection Pooling or PgBouncer for Postgres Instances?Hello! Anyone know if the Railway Postgres instance has any sort of connection pooling or pgBouncer?webhook to rebuild serviceHi I have one project: Mongo, PayloadCMS + storage, Nextjs I want to trigger nextjs rebuild after aI paid 40 dollars in subscription fees but its still dont pay my debt for credits.deploy prisma/client not foundhey, when I deploy the prisma client in node_modules is not found because its not generating, I haveCan you explain how usage is estimatedI have an account with a hobby plan subscription, I have a discord bot running on it and a MySQL DB Trying to save a fileTrying to save a file in media/ where can i save files ? PermissionError: [Errno 13] Permission dHelp setup a monorepo - Angular / ExpressHi! Hope everyone is doing well :). I am trying to deploy my Angular application on railway, but it Nose.Js versionhow do i change itVolume creation prevents service from deployingHi! I'm trying to add a volume to a project, but when I attach it to the service, it stops being abl