Application error is your app correctly listening on port?

I deployed initially with connecting to postgres, I got this error, then I connected to postgres still got the same error thinking it might be solved. I don't know what else to do because this is my first time of deploying on railway Project id: 3c7e50eb-3a9a-4657-b42c-265330d10495
Project ID: 3c7e50eb-3a9a-4657-b42c-265330d10495
UUUnknown User11/29/2022
Message Not Public
Sign In & Join Server To View
It's a Django application
check that your project's PORT env var is set to 8000 in railway, unless you have a specific configuration with django that overrides this
Thanks. But I am still getting an error after setting it, don't know if I did it correctly, but I will share the image
Your port env variable and the port variable in your code should be set to the same value. If you would like to send your file where the server is configured I can point it out for you
I specified the PGPORT on my code env and as well railway env, but I am still getting the error
not PGPORT, PORT please send a screenshot of your error
This is the error
Is your PORT variable set?
I don't know how to specify Port This is my first time deploying a web app How can I do that please
Under the variables tab, create a variable called PORT set to a 4 digit number make sure your code is either pulling the port from the environment variables or is set to the same number
Alright, thanks

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Yarn install failing on new buildsHey! The yarn install step is failing for my new builds, seems to be a cache issue: `#11 2.413 erron8n webhookhow i can add webhook not local hostCan I put Lavalink server on your hosting?Lavalink, respectively, this is java. But on github, the archive needed for work exceeds the maximumNode 19.xIs there support for Node 19.x?Duplicate variables when setting up additional service for Sidekiq in a Rails projectHey team, firstly love your work. I've searched Discord/Google/help for advice on this already but IOnly re-deploy (not rebuild) upon env variable changeIs there a way to have Railway not do a rebuild (which can take 4-5 minutes) and just redeploy when How to stop a project from running and using execution hours temporarilyyessamesite cookies; public suffixHi dev team! Quick question. I couldnt find railway.app (and up.railway.app) on the public suffix lDeployment has crashed after upgradeCRASHED after running my nodejs directus app, everything running locally. Please help https://railwrailway run returns 400Any command, freshly logged in and linked project. Anything I should check? Statuspage is green.rust-overlay unable to download archivemore info in chatNodeJS server does not use connection keep-alive anymoreI moved my NodeJS http server from Heroku to NodeJS. It's just a school project, so it uses regular Deployment with build doesn't workHi I am trying to deploy my react app with npm run build command but it gives an error while buildinPath of a Nixpacks (google-chrome, chromedriver) [Python]Hello, with the latest update I could install `google-chrome` and `chromedriver` using Nixpacks by afailing to buildmy builds are failingI'm having issues with my deploymentI am trying to redeploy a project. Here is the response I am getting. ```bash #3 [internal] load meScheduling Jobs to run far in the futureHey there, I have a Typescript project running on Railway. I am looking to dynamically schedule a