You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tony Arcieri edited this page Sep 15, 2013
·
3 revisions
Running Rails 3.2+ is officially supported on the Reel::Rack adapter. This page describes how to run a Rails project on top of Reel, and even leverage Websockets from within a Rails application.
Edit Gemfile and add the following line (wherever you want, probably at the bottom):
gem'reel-rack'
Now save Gemfile, exit your editor, and run the following command:
bundle
This should now install reel-rack and all of its dependencies, including Reel, Celluloid, Celluloid::IO, and nio4r. Once they've all been installed, you can run bundle exec reel-rack:
$ bundle exec reel-rack
I, [2013-09-15T00:22:11.586704 #8136] INFO -- : A Reel good HTTP server! (Codename "Garbo")
I, [2013-09-15T00:22:11.586786 #8136] INFO -- : Listening on http://0.0.0.0:3000
If everything worked, you can now go to http://127.0.0.1:3000/ and you should see the following page:
That's It!
Congratulations, you've now got Rails running on Reel.