質問

require "juggernaut"
Juggernaut.publish("channel1", "Some data")

The code above works if Juggernaut is on the same server as the one running the code. What's the syntax to use a Juggernaut running on another server?

役に立ちましたか?

解決

The syntax is the same. I have a juggernaut.yml config file in my config directory with settings for each environment. To run juggernaut on port 8080 of localhost in development, I have:

development:
  host: 'localhost'
  port: 8080

To run it on a different host, you can just change that host setting (e.g. 'jugg.someserver.com')

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top