configuration problem, i think

33 views
Skip to first unread message

Bill Walton

unread,
Aug 15, 2011, 10:47:05 PM8/15/11
to juggernaut...@googlegroups.com
I'm trying to get juggernaut2 working with a Rails3 app and think I've
got a configuration problem. When I start the app, after starting
regis-server and juggernaut (using juggernaut -g juggernaut.yml) I get
a 3-series popup dialog saying "Juggernaut: There has been an error
connecting on 127.0.0.1:5001", then another saying it's trying to
reconnect. I'm thinking I've done something wrong in configuring
Juggernaut because when I ran "juggernaut -c juggernaut.yml" it
started juggernaut rather than running a task to completion. Also,
there's no juggernaut.yml in the config directory, though there is a
juggernaut-hosts.yml file there. The juggernaut.yml is still under
vendor. Any help is much appreciated. I'd really like to get on with
using juggernaut.

Best regards,
Bill

Alex MacCaw

unread,
Aug 16, 2011, 4:03:19 AM8/16/11
to juggernaut...@googlegroups.com
That's not Juggernaut 2 you're trying to get working - it's an ancient version (or an ancient tutorial). Follow:


--
You received this message because you are subscribed to the Google Groups "Juggernaut 2" group.
To post to this group, send email to juggernaut...@googlegroups.com.
To unsubscribe from this group, send email to juggernaut-for-r...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/juggernaut-for-rails?hl=en.




--
Alex MacCaw

+12147175129
@maccman

http://alexmaccaw.co.ukhttp://www.leadthinking.com | http://socialmod.com

Bill Walton

unread,
Aug 16, 2011, 11:37:15 PM8/16/11
to juggernaut...@googlegroups.com
Hi Alex,

Thanks for your reply. Question is, do I need the plugin to integrate
with a Rails 3 app? I've got the stand-alone index.html page working
with a ruby script, but need to take the next step. I tried setting
the port entry in juggernaut-hosts.yml to 8080 and had the same
disconnect behavior.

Thanks,
Bill

Nicolas Cavigliano

unread,
Aug 16, 2011, 11:53:12 PM8/16/11
to juggernaut...@googlegroups.com
If you clone the original juggernaut repo, look under juggernaut / client / lib / juggernaut.rb and Alex has some good examples in the README with how to use juggernaut and rails. Alex is right, the plugin you're looking at is the older version and has nothing to do with the newer node.js version.

Nic

Bill Walton

unread,
Aug 17, 2011, 10:34:24 PM8/17/11
to juggernaut...@googlegroups.com
Hi Nic,

I'm afraid I can't figure out which repo you're talking about. When
you say 'clone' I think Git, but I only see one juggernaut repo under
Alex. The repo at rubyforge (http://juggernaut.rubyforge.org/) has a
link to the juggernaut_plugin on Git, but that's all I see. The
instructions on the Rubyforge page are the ones I followed that got me
where I am today (lost ;-/) . Sorry to be so dense, but I'd really
appreciate a pointer.

Do I need to use the juggernaut plugin to incorporate juggernaut2 into
a Rails app? If so, what's the correct url to get the plugin and are
there any current instructions on its configuration?

Thanks,
Bil

Nicolas Cavigliano

unread,
Aug 17, 2011, 11:56:59 PM8/17/11
to juggernaut...@googlegroups.com
The rubyforge link you mention is the old plugin version. Don't use that. Go to https://github.com/maccman/juggernaut and use that code. The code you get from that link is a node.js application that facilitates the connections between clients and the redis pub/sub functionality. What you need to do, to tie in to the server side of things is set up listeners in some language. Alex does a good job and incorporates a ruby client and example to "listen" to the subscribe and unsubscribe events. In theory, anything that SUBSCRIBE (a redis command) to juggernaut, juggernaut:subscribe, juggernaut:unsubscribe can act upon those events. Juggernaut by default tries to connect to a local redis server. You can change those default options. I haven't really used the ruby client yet to push messages, but check out https://github.com/maccman/juggernaut/client/lib/juggernaut.rb - it'll hopefully shed some light on what's going on. 

You could always ping me on skype at ncavig - I'll be on for an hour or so
Reply all
Reply to author
Forward
0 new messages