Use erb templates for managing ports in configuration