Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.
Tony Arcieri edited this page Sep 15, 2013 · 6 revisions

This page documents the reel-rack command line interface. If you're just getting started you might want to check out the [Basic Usage] page first.

We'll assume you have the reel-rack CLI installed. If not, please go read that [Basic Usage] page! You should be able to do this:

$ reel-rack -h
reel-rack <options> <rackup file>
    -a, --addr ADDR                  Address to listen on (default localhost)
    -p, --port PORT                  Port to bind to (default 3000)
    -q, --quiet                      Suppress normal logging output
    -h, --help                       Show help

Launching a Rack app

If you're in the directory of a Rack-based application that already has a "config.ru" file (including Rails apps) you're almost done! Just run:

reel-rack

That's it! If everything worked you should see:

$ reel-rack
I, [2013-09-14T23:40:14.556975 #7674]  INFO -- : A Reel good HTTP server! (Codename "Garbo")
I, [2013-09-14T23:40:14.557065 #7674]  INFO -- : Listening on http://0.0.0.0:3000

Launching from a custom Rackup file

To launch from a Rackup file named something other than "config.ru", use:

reel-rack myconfig.ru

Launching on a custom port

To launch on a different port, use the -p option:

reel-rack -p 9001

Be sure to specify this before the custom rackup file if you're using one:

reel-rack -p 9001 myconfig.ru
Clone this wiki locally