checks that the deploy key is used in after_restart.rb