Is it possible to integrate a nodejs app as a part of a rails app?
What's the best way to integrate a NodeJS app into an existing Rails app?
Rails app: http://www.rails.app
Nodejs app: http://node.rails.app or even http://www.rails.app/node
23-09-2010: After searching for some time, I think an approach would be to 开发者_如何学Chave 2 separate services:
- Rack (Rails) service, which would host the rails application.
- NodeJS service for the realtime component.
So, I guess what my question is aimed to, is server management: How can I properly configure a server to host the main app via any requests to http://www.rails.app/* but dedicate http://node.rails.app or http://www.rails.app/node to the nodejs component?
Just use Juggernaut 2. http://github.com/maccman/juggernaut
However, i would advise you to just stick to one of them. Either node.js or Rails. For rails you can give http://pusherapp.com a shot.
精彩评论