Moved SERVER_PORT to config file and made its path absolute.