简体   繁体   中英

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. 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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM