Disable all notifications. Turn on Airplane mode on your phone. You can also use an app like Freedom or Rescue time to block access to distracting websites, social media and tools while working.