Setting up configuration for port number based on environment