-
Notifications
You must be signed in to change notification settings - Fork 24
CLI
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
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
To launch from a Rackup file named something other than "config.ru", use:
reel-rack myconfig.ru
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
Sorry! reel-rack
doesn't support TLS/SSL at this time. If you're interested, please see reel-rack issue #3 about adding support for HTTPS