Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 24
- Log:
Initial import of Collaboa 0.5.6 from downloaded Tarball. Collaboa is
a Ruby On Rails based bug tracker and SVN repository browsing tool.
- Author:
- adh
- Date:
- Mon Jul 24 21:54:39 +0100 2006
- Size:
- 1617 Bytes
1 | #!/usr/local/bin/ruby |
2 | |
3 | require 'webrick' |
4 | require 'optparse' |
5 | |
6 | OPTIONS = { |
7 | :port => 3000, |
8 | :ip => "127.0.0.1", |
9 | :environment => "development", |
10 | :server_root => File.expand_path(File.dirname(__FILE__)), |
11 | :server_type => WEBrick::SimpleServer |
12 | } |
13 | |
14 | ARGV.options do |opts| |
15 | script_name = File.basename($0) |
16 | opts.banner = "Usage: ruby #{script_name} [options]" |
17 | |
18 | opts.separator "" |
19 | |
20 | opts.on("-p", "--port=port", Integer, |
21 | "Runs Rails on the specified port.", |
22 | "Default: 3000") { |OPTIONS[:port]| } |
23 | opts.on("-b", "--binding=ip", String, |
24 | "Binds Rails to the specified ip.", |
25 | "Default: 127.0.0.1") { |OPTIONS[:ip]| } |
26 | opts.on("-i", "--index=controller", String, |
27 | "Specifies an index controller that requests for root will go to (instead of congratulations screen)." |
28 | ) { |OPTIONS[:index_controller]| } |
29 | opts.on("-e", "--environment=name", String, |
30 | "Specifies the environment to run this server under (test/development/production).", |
31 | "Default: development") { |OPTIONS[:environment]| } |
32 | opts.on("-d", "--daemon", |
33 | "Make Rails run as a Daemon (only works if fork is available -- meaning on *nix)." |
34 | ) { OPTIONS[:server_type] = WEBrick::Daemon } |
35 | |
36 | opts.separator "" |
37 | |
38 | opts.on("-h", "--help", |
39 | "Show this help message.") { puts opts; exit } |
40 | |
41 | opts.parse! |
42 | end |
43 | |
44 | ENV["RAILS_ENV"] = OPTIONS[:environment] |
45 | require File.dirname(__FILE__) + "/../config/environment" |
46 | require 'webrick_server' |
47 | |
48 | puts "=> Rails application started on http://#{OPTIONS[:ip]}:#{OPTIONS[:port]}" |
49 | DispatchServlet.dispatch(OPTIONS) |