I've heard of people doing this:
https://github.com/ddollar/heroku-buildpack-multi

-p


On Sat, Dec 15, 2012 at 3:43 PM, Neil Middleton <[email protected]>wrote:

> You probably could create an application running Ruby and JRuby, but you'd
> be looking at making a custom buildpack in order to do this.
>
> An alternative would be to use two apps, and hook them both into the same
> queue - having one app putting items into the queue, and the other just
> working the queue (having no web process).  You can share a database
> between applications easily:
> http://neilmiddleton.com/sharing-databases-between-heroku-applications/
>
> You wouldn't even need to modify your code.  Deploy the same app twice,
> one with the Ruby buildpack, and one JRuby, and scale the processes to suit.
>
> --
> Neil
>
> On Saturday, 15 December 2012 at 23:39, Brian wrote:
>
> Hello!
>
> I've got a Rails site up now that let's people create PDF's. The web
> process does a delayed_job to the worker to create the documents. This is
> fine, but with the recent announcement of official JRuby support I'd like
> to look into rewriting my worker in JRuby/iText because it will be *much* 
> faster
> than what I'm using for PDF's now (Prawn).
>
> I'm pretty sure I can't but is it possible to mix languages in one app? In
> my case, I'd like to keep my web process vanilla Ruby, while the worker
> would be JRuby.
>
> Assuming I can't, what would be the best way to have one Heroku web app
> queu jobs to another Heroku worker app?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

Reply via email to