Does Juggernaut work on Heroku? - ruby-on-rails-3

I'm building a Rails app that includes live group chat. I've heard Juggernaut is the best option for this. Does it work on Heroku?

They did have experimental node.js support but it seems to be in closed beta for the timebeing. Expect a release soon.
http://blog.heroku.com/archives/2010/9/20/an_update_on_heroku_node_js_support/
I have minimal sysadmin skills but managed to set up an Ubuntu 10.04 environment with relative ease. http://purebreeze.com/2011/03/adding-realtime-push-updates-to-agileista-using-juggernaut/
The 'easiest' option is probably to use Pusher but probably not as fun or cost effective.
UPDATED
Heroku now fully support node.js
Here's a gist from the juggernaut author showing how he set up juggernaut on Heroku:
https://gist.github.com/1003748
I will also update my blog post shortly to reflect getting up and running.
It's much easier now!

Related

Are there any full-featured tutorials or examples for faye on rails?

I have worked with faye on node before, but now want to add it to a rails app. I've found plenty of quick integration guides and have it up and running, but my current implementation is pretty hacky. I've been unable to find any longer tutorials or examples including a good convention for the server to subscribe to the faye channels, interact with the rails models, and publish responses. Does anyone know of good resources?
The below links can be useful for you,
http://railscasts.com/episodes/260-messaging-with-faye?view=asciicast
First one exhibits the simple instant message application in Rails with the help of faye.
I found the How to Use Faye as a Real-Time Push Server in Rails tutorial to be a good start:
We’re going build a simple chat service. Now, Ryan Bates covered this on Railscast #260, however, we’re going to take a slightly different approach in this tutorial. First, we’ll create a chat service where users enter a public room, and everyone can chat with each other publicly. The second functionality we’ll be adding is private messages. Additionally, we’ll integrate some security to our implementation using Ryan Bate’s private_pub gem.
In about one hour you get a hands-on experience and understanding of Faye, both as a server and as a client. By the end of it you have a very basic chat; and not only that, your chat is also secure via private_pub.
Faye has moved towards rack compatibility, so using a config.ru file and booting with the command rackup is advised (the listen method will not work on the latest version of faye).
Booting Faye with rails isn't encouraged, because FAYE isn't compatible with development middleware in rails, meaning you will always need to run in production mode.
A minimalistic barebones example project was written, which deploys cleanly to heroku as observed live at faye-rails-example.herokuapp.com.

Deploy a Ruby on Rails website

i would like to deploy my ruby on rails website. I am using rails 3.2 and ruby 1.9.3, so have the assets pipeline feature. What i would like to know is who offers the most complete hosting package ( or easiest as I am new to rails). I don't mind paying for a package or trying a free one, just as long as its idiot proof :).
Any advice helpful as I would like to get this uploaded for a client
Heroku is pretty much today's standard for deploying Rails app, if you are into paying for it.
I would personally recommend to deploy in your own server if possible. It's much more versatile and not difficult at all. You could also make the procedure more efficient by using a tool like capistrano, which i highly recommend.

Tips and steps for setting up ruby on rails continuous integration server with github integration

I'm still new with ruby on rails and am tasked with setting up a continuous integration server/service that uses the code hosted on github and alerts when the tests fails. Amazon EC2 was recommended as a service to use as platform for the service.
I did some research and tried to set up the system using a step by step tutorial but I'm not used to work with Amazon EC2, so I kinda failed doing that.
Can you help me with some advices or first steps to take?
Thanks
For CI server you can use CruiseControl developed by ThoughWorks
. Its open source as well . You can get it from github as well.
And pretty much simple to set up only takes 10 min to setup and as its written in ruby its pretty much simple to hack and customize to as per your need .
Reply me if you find anything problem in setup CI
Thanks

Thin vs. unicorn for development mode on Mac?

I'm shocked that this question hasn't been asked already, but I swear I looked everywhere. Are there advantages of thin over unicorn, or vice versa, when running Rails 3 in development mode?
I decided to go with Thin for development because Heroku runs my apps on Thin in production.
It's always a good practice to make your dev ENV match your production ENV as much as possible.
Here's a couple breakdowns of Thin vs. Unicorn, although they're a little old.
http://snaprails.tumblr.com/post/441654760/thin-vs-unicorn-performance-benchmark
http://cmelbye.github.com/2009/10/04/thin-vs-unicorn.html
Unicorn runs very well on Heroku now, you may want to check this out:
http://michaelvanrooijen.com/articles/2011/06/01-more-concurrency-on-a-single-heroku-dyno-with-the-new-celadon-cedar-stack/
And of course this to get a better idea of why you'd want to use Unicorn:
https://github.com/blog/517-unicorn
I'm moving away from Thin now myself after exploring this more fully.
**I should note, this is only possible on the Celadon Cedar stack, which should be something you're shifting towards at this point anyway.

mono in production websites?

I'm investigating the use of mono in real world high traffic web applications. There are some references on the mono site (companies using mono), but I couldn't find a high traffic website sample other than Deki powered ones. And I've read some mailings about mod_mono stability problems because of inexistence of compacting GC.
Please reference your app and give some info, if is there anyone using mono in production.
...or do I have to look at Java ?
Regards,
sirmak
Wikipedia is using Mono for search (also listed on the companies using Mono page)
A ton of people use Mono in production and development. I'm sure this page will change dramatically over the next year or so, but look at http://www.mono-project.com/Companies_Using_Mono. This is a good reference, but projects using Mono are popping up every day, so we'll see more soon.
Lunchwalla.com uses Mono for its website. It receives fairly high traffic. There is also a little blog item regarding the set up - http://blog.lunchwalla.com/2010/04/23/the-tech-behind-lunchwalla/
Go for it. Beyond the initial setup work and tuning you can have a very stable and fast server with all the advantages of low-resource required do the the job, at least with nginx/lighttpd. mod_mono (Apache) resources will go way faster according to a lot of feedback I've been reading on the all the major places this topic is discussed
From #mono (IRC)
<ruionwriting> ahall: in apache what is your feel about the performance compared with nginx?
<ahall> the fastcgi implementation is just a bit buggy and buy sending few concurrent requests to it it hogged 99% cpu and didn't get out of it. I will switch to nginx + fastcgi as soon as its suitable for me in production
<ahall> buy = by
<ahall> but yeah i always use nginx instead of apache whenever possible, but with mono i dont recommend it
This last part I don't have to agree based on the setup I have.
This question on stack overflow must me included here.