I could use a little help understanding something about the juggernaut
/ node mix. At least that's what I _think_ I need ;-) ) I'll rely on
the 'kindness of strangers' to correct me if I've gotten that wrong
too.
I've got rvm, npm, node, redis, and juggernaut, installed on Ubuntu
10.04 (system output showing versions etc. below my sig.) I'm not
done yet (still need to put some init.d scripts in place, for example)
but I wanted to see some evidence that I was on the right track so I
opened a browser to localhost:8080 and got the expected "Juggernaut -
Hello World!" page with a text area containing 2 lines, as expected:
"Subscribing to channel1" and "Connected". I say "as expected"
because that's what looking at the ~/juggernaut/public/index.html led
me to expect. But I wanted to be sure that that was the file
juggernaut was using because I saw the same file at
~/.npm/juggernaut/2.0.5/package/public/index.html and at
/usr/lib/node_modules/juggernaut/public/index.html. So I put an <h2>
element under the <h1> in each file to see which one was actually
being used. Much to my surprise, the page did not change. I've
rebooted the machine.. Same result. So it appears that _none_ of
those are the right index.html file. Which I find hard to believe,
but I don't have another explanation. It really has me scratching my
head. My google-fu has failed me and I could really use an
explanation.
TIA,
Bill
----- system config info -----
wildbill@wildbill-desktop2:~$ rvm -v
rvm 1.6.22 by Wayne E. Seguin (waynee...@gmail.com)
[https://rvm.beginrescueend.com/]
wildbill@wildbill-desktop2:~$ npm -v
1.0.18
wildbill@wildbill-desktop2:~$ node -v
v0.4.9
wildbill@wildbill-desktop2:~$ rvm list
rvm rubies
ruby-1.8.6-head [ i386 ]
=> ruby-1.9.2-head [ i386 ]
ruby-1.8.7-head [ i386 ]
wildbill@wildbill-desktop2:~$ rvm gemset list
gemsets for ruby-1.9.2-head (found in /home/wildbill/.rvm/gems/ruby-1.9.2-head)
global
rails3.0
rails3.1
wildbill@wildbill-desktop2:~$ rvm gemset use rails3.0
wildbill@wildbill-desktop2:~$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.9)
actionpack (3.0.9)
activemodel (3.0.9)
activerecord (3.0.9)
activeresource (3.0.9)
activesupport (3.0.9)
arel (2.0.10)
builder (2.1.2)
bundler (1.0.15)
erubis (2.6.6)
eventmachine (0.12.10)
i18n (0.5.0)
json (1.5.3)
juggernaut (2.0.3)
mail (2.2.19)
mime-types (1.16)
mysql2 (0.3.6, 0.2.11)
polyglot (0.3.1)
rack (1.2.3)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.9)
railties (3.0.9)
rake (0.9.2, 0.8.7)
rdoc (3.8)
redis (2.2.1)
sqlite3 (1.3.3)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.29)
wildbill@wildbill-desktop2:/$ cd /
wildbill@wildbill-desktop2:/$ sudo find -name index.html | grep 'juggernaut'
[sudo] password for wildbill:
./home/wildbill/juggernaut/public/index.html
./home/wildbill/.npm/juggernaut/2.0.5/package/public/index.html
./usr/lib/node_modules/juggernaut/node_modules/socket.io/node_modules/policyfile/doc/index.html
./usr/lib/node_modules/juggernaut/public/index.html
wildbill@wildbill-desktop2:/$
On Thu, Jul 28, 2011 at 11:05 AM, nca...@gmail.com <nca...@gmail.com> wrote:
> Type "ps aux | grep node" and see where your node server.js is
> running.
Did that with the following results:
wildbill@wildbill-desktop2:~$ ps aux | grep node
root 226 0.0 0.0 0 0 ? S Jul27 0:00 [knodemgrd_0]
123 920 0.2 0.6 62088 20668 ? Sl Jul27 4:47 node
/usr/bin/juggernaut
wildbill 20491 0.0 0.0 3328 800 pts/1 S+ 13:38 0:00 grep node
Which is one reason I was confused (i.e., no index.html files anywhere
in the vicinity).
Not sure yet why, but the index.html that's being rendered eventually
showed me it was the one at
/usr/lib/node_modules/juggernaut/public/index.html. I'm hoping this
all starts to make more sense as I figure out how all the pieces fit
together, especially the workings of node.js. Any links that would
help me down the path to understanding would be very much appreciated.
I've been working pretty much exclusively with RoR for the past 6
years and this seems very different.
Thanks,
Bill
Thanks,
Bill
> --
> 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.
>
>