Allow specifying ports and app dir