Make sure root folder is always 'publish'

Fetch the port number from the config file instead
of using the hardcoded one.