I haven't the faintest idea why GETting a document named "check" would cause a deployment to be requested.  I'd rather expect that sort of thing to be a POST. 

More worryingly, however, doing the GET on a raw IP address seems fragile.

If these are nonetheless the right thing to do, I'd suggest that both of those concerns merit adding comments so that future code readers/maintainers will know what to make of this.  r- for now.