dongliang1223 2017-12-24 17:47
浏览 53

socket.io Heroku ERR_CONNECTION REFUSED

Hi I'm running a php app on my heroku web dyno, and a separate node.js socket.IO app on an adjacent Worker dyno.

Now when I build to the git repo and scale the dynos up, there is only confirmation that the PHP apache server is working (since the webpage is displayed). but the socket.IO connection displays ERR_Connection_refused on chrome.

Fiddling with the port numbers leads to a worse 404 message on the socket.io connection.

Any suggestions?

----EDIT---- So I've replaced the worker dyno with a node dyno in the procfile and I'm still facing the same issue of ERR_connection_refused on chrome

----EDIT2---- I've managed to use honcho to initialize a web dyno that then spawns 2 child processes - apache and node. The apache works but the node still refuses connection.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何用stata画出文献中常见的安慰剂检验图
    • ¥15 c语言链表结构体数据插入
    • ¥40 使用MATLAB解答线性代数问题
    • ¥15 COCOS的问题COCOS的问题
    • ¥15 FPGA-SRIO初始化失败
    • ¥15 MapReduce实现倒排索引失败
    • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
    • ¥15 找一位技术过硬的游戏pj程序员
    • ¥15 matlab生成电测深三层曲线模型代码
    • ¥50 随机森林与房贷信用风险模型