public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
Search Repo:
Fix typo in thin script usage message and expand chdir path
macournoyer (author)
Wed Jan 09 06:42:08 -0800 2008
commit  8d16c531e8f5dff763b4038ad9bf2d77448c1078
tree    357d3364a0a48c0476f133d224bb85eb0b715244
parent  08229939133eca4fa6827a9067155dd7c58fe2b3
...
1
 
2
3
4
...
1
2
3
4
5
0
@@ -1,4 +1,5 @@
0
 == 0.5.2 Cheezburger release
0
+ * Fix typo in thin script usage message and expand chdir path.
0
  * Rename thin script options to be the same as mongrel_rails script:
0
    -o --host => -a --address
0
    --log-file => --log
...
23
24
25
26
 
27
28
29
...
23
24
25
 
26
27
28
29
0
@@ -23,7 +23,7 @@
0
   opts.on("-a", "--address HOST", "bind to HOST address (default: 0.0.0.0)") { |host| options[:host] = host }
0
   opts.on("-p", "--port PORT", "use PORT (default: 3000)") { |port| options[:port] = port }
0
   opts.on("-e", "--environment ENV", "Rails environment (default: development)") { |env| options[:env] = env }
0
- opts.on("-c", "--chdir PATH", "listen on HOST (default: current dir)") { |dir| options[:root] = dir }
0
+ opts.on("-c", "--chdir PATH", "Change to dir before starting") { |dir| options[:root] = File.expand_path(dir) }
0
   opts.on("-d", "--daemonize", "Run daemonized in the background") { options[:daemonize] = true }
0
   opts.on("-l", "--log FILE", "File to redirect output",
0
                               "(default: #{options[:log_file]})") { |file| options[:log_file] = file }

Comments

    No one has commented yet.