Hassan Oladipupo
Hi everyone
After deploying my application on railway, i encountered an Application errror , the error says "The application failed to respond"
So after encountering this i read the railway documentation which says
"railway needs to know how to communicate with your application. When you deploy and expose a web application on Railway, we expect your web server to be available at host 0.0.0.0 and a port that we provide in the form of a PORT variable. The PORT variable is automatically injected by Railway into your application's environment."
so basically the railway didn't know to communicate with my application because my application is running on a different host and port
my application is built with Symfony, which is a PHP-based framework.
how do i configure my application to be available at host 0.0.0.0 and a port that we provide in the form of a PORT as required by railway ?
i have tried modifying my .env file by adding
APP_HOST=0.0.0.0
APP_PORT=3000
but it didn't work
i also tried runing the command "symfony server:start --host=0.0.0.0 --port=3000" on my terminal
that didn't work work
any idea on how i can resolve this please
32 replies