10 months ago
Application failed to respond
Request ID:
mRLKtD2_TtWJ4Nq-m3z_FQ
4 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 Deploy app with vue 3 and vite
- 🧵 react appkication deployement issue
- 📚 Application Failed to Respond
- 🧵 Persistent 502 "Application failed to respond" on new PHP/Nginx Project
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
Make Sure Your App Binds to process.env.PORT
Railway expects your server to listen on the port it gives you via environment variable PORT.
Node.js Example:
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});
Django Example:
Use this in Railway environment variables:
PORT=8000
Then run:
python manage.py runserver 0.0.0.0:$PORT
Or set start command to:
gunicorn your_project.wsgi:application --bind 0.0.0.0:$PORT
127.0.0.1 or default localhost will not
work — must use 0.0.0.0.
10 months ago
& redeploy
10 months ago
Please provide more context for your issue. What type of services are deployed, and what exactly is the issue