[英]Deploy static web page with node.js http-server on heroku
I've run node.js http-server , described in my web dyno: http-server .build -p 80
Well, I've tried to stop process, kill, scale web to 0, restart... Even if web.1 disappear from heroku ps
list, server still working on 80 port. 我已经运行了node.js http-server ,在我的Web dyno中进行了描述:
http-server .build -p 80
好,我试图停止进程,终止进程,将Web缩放为0,然后重新启动...即使是Web。 1从heroku ps
列表中消失,服务器仍在80端口上工作。 And it can't be restarted with new arguments because port is already in use and I have no way to stop it. 而且它无法使用新的参数重新启动,因为端口已在使用中,我无法停止它。 What am I doing wrong?
我究竟做错了什么? I also tried to open heroku bash in admin panel and check
ps aux
or netstat
, but no luck. 我还尝试在管理面板中打开heroku bash并检查
ps aux
或netstat
,但没有运气。
Ah! 啊! Sorry, I should not to specify port, because heroku uses random port, so my final dyno looks like this:
http-server .build -p $PORT
抱歉,我不应该指定端口,因为heroku使用随机端口,所以我的最终dyno如下所示:
http-server .build -p $PORT
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.