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

Run Node from Heroku Rails App

Run Node from Heroku Rails App

Problem

I have a Rails App that allows users to write code (sort of like those teach yourself coding) using sandcastle (a node library).

I have a node script which does what I want it to, but how can I trigger it to run from my rails app on heroku?

Problem courtesy of: K2xL

Solution

You need two apps. Create a separate node app on Heroku and provide endpoints that your Rails app can communicate with. I think that is your best bet as you cannot run ruby & node on the same dyno at Heroku.

Solution courtesy of: Desmond Morris

Discussion

View additional discussion.



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

Share the post

Run Node from Heroku Rails App

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×