How to check if we are in development mode, while deploying?

How to check whether we are in testing (on localhost) mode, while deploying an Aragon project?

(I want to create a new additional contract if we are in testing, but suggest the organization creator use a fixed (common for all organizations of my kind) contact address, if we are on mainnet, etc.)