a year ago
I am investigating a way to ensure my app has finished all current processing before a github deploy replaces it.
Would it be possible to use pre-deploy commands to check a url / websocket / etc for a "all clear" signal before the deploy happens?
I would be concerned that a long running pre-deploy command would just be terminated and the deploy canceled.
2 Replies
a year ago
Hello,
It would definitely be possible, just write some code to do that url check and have the pre-deploy command run that code, exit with a zero or one to indicate success or failure, if the predeploy doesn't successfully exit then the application wont be ran.
as far as i know the pre-deploy command does not have a timeout.
but make sure to use a health check with this so that railway doesn't pre-maturely switch in the new deploy until its actually active.
a year ago
!s
Status changed to Solved brody • 11 months ago