-
Notifications
You must be signed in to change notification settings - Fork 24
Rails on Reel
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.
We'll assume you already have a Rails application (if not here's a guide on how to create one).
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:
Congratulations, you've now got Rails running on Reel.