2017-05-15 17 views
2

私はレール5にアクションケーブルを実装していますが、ローカルでは完全に動作していますが、ステージングとプロダクションでは、アクションケーブルレールにメッセージを送信した後、ActionCableはメッセージを送信しません

[ActionCable] Broadcasting to chats_4: {:id=>"message_97", :message=>"88", :user=>"John", :time=>"15-May-17 06:38 am", :chatroom_id=>4, :file=>nil} 

しかし、それは加入者に送信していないが、コンソールが私の環境設定を以下に示し

Firefox can’t establish a connection to the server at wss://demo.xyz.com/cable. 
The connection to wss://demo.xyz.com/cable was interrupted while the page was loading. 

エラーになりますブラウザ。

config.action_cable.url = "wss://demo.xyz.com/cable" 
config.action_cable.allowed_request_origins = ['https://demo.xyz.com', 'http://demo.xyz.com'] 

私は乗客にアプリケーションをホスティングしています+ nginxの

location /cable { 
      passenger_app_group_name xyz_websocket; 
      passenger_force_max_concurrent_requests_per_process 0; 
     } 

私のnginxのログは

2017/05/15 06:43:30 [error] 13412#0: *675 open() "/home/test/apps/xyz/current/public/cable" failed (2: No such file or directory), client: 103.xix.204.xx, server: https://demo.xyz.com, request: "GET /cable HTTP/1.1", host: "demo.xyz.com" 

は、この問題を解決する方法を、私を助けてと言います。

答えて

0

は、セットアップhereについての詳細を読むことができますが、私は、あなたが別途ケーブルサーバをマウントしていることを確認したい - それは私が同じ実装されている

+0

「旅客が実際に独立したプロセスとして実行を主張」のように聞こえます – Navin

関連する問題