Database not reachable
Why the database is not reachable sometimes when we a do deploy?
This is happening frequently from last week & customers are expriencing outages because of this.
Project Id: 6d0f799e-be59-4388-899d-f00456f30667
![No description](https://cdn.answeroverflow.com/1246008516221861921/Screenshot_2024-05-31_at_1.18.49_PM.png)
7 Replies
Project ID:
6d0f799e-be59-4388-899d-f00456f30667
This gets fixed only after manually doing a restart.
make sure to add a delay to the start of your application
Can you tell us how to do that? We face this issue after every deployment.
sure!
what's your current start command and where is it set?
cmd = node server/dist/main
nixpacks.toml
![No description](https://cdn.answeroverflow.com/1246042225713086464/Screenshot_2024-05-31_at_3.36.19_PM.png)
Solution
try changing that command to
sleep 3 && node server/dist/main