Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Rails on Heroku and node.js on linode?

Rails on Heroku and node.js on linode?


I'm creating an app that uses Rails to serve webpages and node.js/ to facilitate real-time communication. While Heroku can run node.js it can't run websockets, thus I'm going to place the node.js app on linode and the rails app on Heroku.

My question:

In terms of DNS and cross domain issues how would I do this? For instance can I create an A Name record that points '' => linode and '' => heroku?

Problem courtesy of: LDK


The WebSockets security model is not based on same-origin policy. This means that you should not have any cross-origin issues when using WebSockets.

Solution courtesy of: igorw


View additional discussion.

This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Rails on Heroku and node.js on linode?


Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription