Redeploy call

Hi! I have a problem. Sometimes my server code gives me an error and the only way to fix it is to redeploy from railway the latest github version. Is there any way when I get this error, in the exception to make a call from the code to redeploy?
5 Replies
Percy
Percy2mo ago
Project ID: N/A
pitonai11
pitonai11OP2mo ago
N/A
Fragly
Fragly2mo ago
Why not just fix the error
pitonai11
pitonai11OP2mo ago
I'm not getting it fixed. I need a patch while I fix it.
BillyDotWS
BillyDotWS2mo ago
automatically re-deploying your container would be a bigger dev task than putting in a hotfix, no? If you genuinely think not. Add some error catching/a filter onto your service - whenever it fires the specific error, send an api request to railway to re-deploy and pass the error to the requester. It still doesn't solve the issue - people will get the error for a little while. It's a pretty bad solution.
Want results from more Discord servers?
Add your server