Run the after_restart hook with the correct RAILS_ENV