Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Rails on Reel

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.

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:

Welcome to Rails

That's It!

Congratulations, you've now got Rails running on Reel.

Clone this wiki locally