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:
* pid and log files in cluster are no longer required to be relative to 
the
  app directory (chdir option), fixes #24
* add gitorious to users page.
macournoyer (author)
Sun Jan 27 17:38:11 -0800 2008
commit  cb878db6415df073cc8dc069422248e4c4913165
tree    2887af3eb977c044b037961d18867236ea072fb8
parent  f7451b3df8d0e367bc4a0fbbcefaff2a283e7af5
...
1
 
 
2
3
4
...
1
2
3
4
5
6
0
@@ -1,4 +1,6 @@
0
 == 0.6.2 Rambo release
0
+ * pid and log files in cluster are no longer required to be relative to the
0
+ app directory (chdir option), fixes #24
0
  * Revert to using #each when building response headers under Ruby 1.8,
0
    solves an issue w/ Camping adapter, fixes #22
0
  * Restructure thin script options in 3 sections: server, daemon and cluster
...
32
33
34
35
36
 
 
37
38
39
...
32
33
34
 
 
35
36
37
38
39
0
@@ -32,8 +32,8 @@
0
     def first_port; @options[:port] end
0
     def address; @options[:address] end
0
     def socket; @options[:socket] end
0
- def pid_file; File.expand_path File.join(@options[:chdir], @options[:pid]) end
0
- def log_file; File.expand_path File.join(@options[:chdir], @options[:log]) end
0
+ def pid_file; @options[:pid] end
0
+ def log_file; @options[:log] end
0
     
0
     # Start the servers
0
     def start
...
150
151
152
 
153
154
155
...
150
151
152
153
154
155
156
0
@@ -150,6 +150,7 @@
0
       li { a "James on Software", :href => 'http://jamesgolick.com/' }
0
       li { a "FlashDen", :href => 'http://flashden.net/' }
0
       li { a "Calico Web Development", :href => 'http://www.calicowebdev.com/' }
0
+ li { a "Gitorious", :href => 'http://gitorious.org/' }
0
     end
0
     
0
     p { "If you'd like to have your site listed here, #{a 'drop me an email', :href => 'mailto:macournoyer@gmail.com'}" }
...
33
34
35
36
37
38
39
40
41
42
...
33
34
35
 
 
 
 
36
37
38
0
@@ -33,10 +33,6 @@
0
     out.should_not include('--pid=')
0
   end
0
   
0
- it 'should absolutize file path' do
0
- @cluster.pid_file_for(3000).should == File.expand_path(File.dirname(__FILE__) + "/rails_app/thin.3000.pid")
0
- end
0
-
0
   it 'should start on specified port' do
0
     @cluster.should_receive(:`) do |with|
0
       with.should include('thin start', '--daemonize', 'thin.3001.log', 'thin.3001.pid', '--port=3001')

Comments

    No one has commented yet.