Reconfigured ports to auto detect production and development modes