Modified port settings to look at process.env first.