Skip to content
This repository
Newer
Older
100644 47 lines (30 sloc) 1.397 kb
d8cc3fdf »
2009-02-21 README, gemspec, and Rakefile
1 Shotgun
2
3 This is an automatic reloading version of the rackup command that's shipped with
4 Rack. It can be used as an alternative to the complex reloading logic provided
5 by web frameworks or in environments that don't support application reloading.
6
7 The shotgun command starts one of Rack's supported servers (e.g., mongrel, thin,
8 webrick) and listens for requests but does not load any part of the actual
9 application. Each time a request is received, it forks, loads the application in
10 the child process, processes the request, and exits the child process. The
11 result is clean, application-wide reloading of all source files and templates on
12 each request.
13
14 Usage
15 -----
16
17 Installation:
18
19 gem install shotgun
20
21 Starting a server with a rackup file:
22
23 shotgun config.ru
24
25 Using Thin and starting on port 6000 instead of 9393 (default):
26
27 shotgun --server=thin --port=6000 config.ru
28
bcf91542 »
2009-02-21 run Sinatra apps directly (i.e., without rackup file)
29 Running Sinatra apps:
30
31 shotgun hello.rb
32
d8cc3fdf »
2009-02-21 README, gemspec, and Rakefile
33 See 'shotgun --help' for more advanced usage.
34
bcf91542 »
2009-02-21 run Sinatra apps directly (i.e., without rackup file)
35 Links
36 -----
37
38 Shotgun: http://github.com/rtomayko/shotgun
39 Rack: http://rack.rubyforge.org/
40 Sinatra: http://www.sinatrarb.com/
41
42 The reloading system in Ian Bicking's webware framework served as inspiration
43 for the approach taken in Shotgun. Ian lays down the pros and cons of this
44 approach in the following article:
d8cc3fdf »
2009-02-21 README, gemspec, and Rakefile
45
6385c6f5 »
2009-02-21 Add license (MIT)
46 http://ianbicking.org/docs/Webware_reload.html
Something went wrong with that request. Please try again.