Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何查看给定应用程序的heroku端口号?
我尝试使用“heroku config:get PORT”命令。但 Windows 命令提示符给出的结果为“!没有指定应用程序”。我该怎么办?
端口号不是每个应用程序,而是每个测功机。只有您的测功机拥有该信息。 而且您也不需要从外部获取它。无论为该测功机设置哪个端口,您的应用程序将始终在端口 80 上对外可用。