cgi app building key attention

I found when I building cgi web app must be specified for automatically assigned port Numbers? if I specified a port ,such as 8080 , the CGI WEB APP will not be launching , and causing 504 gateway timeout! error …

That probably means that port 8080 is already in use on the server, but yes, you’ll have better luck if you leave it as automatic.