プロジェクトの 1 つにプライベート パブを使用しています。ローカルホストでは正常に動作しますが、ライブサーバーにデプロイすると次のエラーが発生します:
Errno::ECONNREFUSED in CommentsController#new
Connection refused - connect(2) for "202.164.34.20" port 9292
ローカル サーバーの private_pub.yml ファイルの内容は次のとおりです。
development:
server: "http://localhost:9292/faye/faye"
secret_token: "secret"
test:
server: "http://localhost:9292/faye/faye"
secret_token: "secret"
production:
server: "http://example.com/faye/faye"
secret_token: "0378a6008f37cbd9c3390ce4069bb85f776d068f7b4885d6890f07066affde25"
signature_expiration: 3600 # one hour
他のサーバーの場合、ファイルの内容は次のとおりです。
development:
server: "http://202.164.34.20:9292/faye/faye"
secret_token: "secret"
test:
server: "http://202.164.34.20:9292/faye/faye"
secret_token: "secret"
production:
server: "http://localhost:9292/faye/faye"
secret_token: "0378a6008f37cbd9c3390ce4069bb85f776d068f7b4885d6890f07066affde25"
signature_expiration: 3600 # one hour
これをhttp://202.164.34.20:3001 URLにデプロイする必要があります。提案してください。