Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 2
- Log:
Initial import of Instiki 0.11.0 sources from a downloaded Tarball.
Instiki is a Ruby On Rails based Wiki clone.
- Author:
- adh
- Date:
- Sat Jul 22 14:54:51 +0100 2006
- Size:
- 1589 Bytes
- Properties:
- Property svn:executable is set
1 | #!/usr/bin/env ruby |
2 | |
3 | require 'webrick' |
4 | require 'optparse' |
5 | |
6 | OPTIONS = { |
7 | :port => 2500, |
8 | :ip => "0.0.0.0", |
9 | :environment => "production", |
10 | :server_root => File.expand_path(File.dirname(__FILE__) + "/../public/"), |
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 Instiki on the specified port.", |
22 | "Default: 2500") { |OPTIONS[:port]| } |
23 | opts.on("-b", "--binding=ip", String, |
24 | "Binds Instiki to the specified ip.", |
25 | "Default: 0.0.0.0") { |OPTIONS[:ip]| } |
26 | opts.on("-e", "--environment=name", String, |
27 | "Specifies the environment to run this server under (test/development/production).", |
28 | "Default: development") { |OPTIONS[:environment]| } |
29 | opts.on("-d", "--daemon", |
30 | "Make Instiki run as a Daemon (only works if fork is available -- meaning on *nix)." |
31 | ) { OPTIONS[:server_type] = WEBrick::Daemon } |
32 | |
33 | opts.separator "" |
34 | |
35 | opts.on("-h", "--help", |
36 | "Show this help message.") { puts opts; exit } |
37 | |
38 | opts.parse! |
39 | end |
40 | |
41 | ENV["RAILS_ENV"] = OPTIONS[:environment] |
42 | require File.dirname(__FILE__) + "/../config/environment" |
43 | require 'webrick_server' |
44 | |
45 | OPTIONS['working_directory'] = File.expand_path(RAILS_ROOT) |
46 | |
47 | puts "=> Instiki started on http://#{OPTIONS[:ip]}:#{OPTIONS[:port]}" |
48 | puts "=> Ctrl-C to shutdown; call with --help for options" if OPTIONS[:server_type] == WEBrick::SimpleServer |
49 | DispatchServlet.dispatch(OPTIONS) |