502 Bad Gateway after connecting Meilisearch Service

kingukHOBBY

8 months ago

I added a Meilisearch service to my enviroment, then added the RAILWAY_PUBLIC_DOMAIN variable to my env variables for my main application.

Checking http logs I see this:

"failed to forward request to upstream: connection refused"

Solved

6 Replies

8 months ago


kingukHOBBY

8 months ago

Hi Brody,

Thanks, I have read the docs page but couldn't work out how this was related to my issue. I never had to define a port for my main app before


8 months ago

Please see the image in the docs, that is the same error page you are getting when you open your domain.

Please follow the docs solution.


kingukHOBBY

8 months ago

Are there any docs to help with using NIXPACKS? I have searched for the last hour and cannot find anything that can help.

I updated the vite config for my laravel app to use port 3000 and host 0.0.0.0 but still getting the same error.


8 months ago

The issue here is that your start command does not start the web server, please remove it.


kingukHOBBY

8 months ago

Ah! That’s it, thank you Brody.


Status changed to Solved brody 8 months ago