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:
Ignore Rails log dir and doc fix
macournoyer (author)
Tue Jan 29 11:58:41 -0800 2008
commit  d019105fe46b732114e3f0bf2017ab294ac9e105
tree    d8c3d789369613ccc8b147309f424f418b7198ae
parent  546e6a9e461b4f1017e3d01ea7809529f08402f8
...
5
6
7
 
8
9
10
...
5
6
7
8
9
10
11
0
@@ -5,6 +5,7 @@
0
 ext/thin_parser/*.bundle
0
 lib/*.bundle
0
 log/*.log
0
+spec/rails_app/log
0
 doc/rdoc/*
0
 tmp/*
0
 pkg/*
...
115
116
117
118
 
119
120
121
...
115
116
117
 
118
119
120
121
0
@@ -115,7 +115,7 @@
0
     # Register restart procedure
0
     server.on_restart { Thin::Command.run(:start, options) }
0
     
0
- server.start!
0
+ server.start
0
   end
0
 end
0
 
...
39
40
41
 
 
42
43
44
45
46
47
48
...
75
76
77
78
 
79
80
81
...
39
40
41
42
43
44
45
 
 
46
47
48
...
75
76
77
 
78
79
80
81
0
@@ -39,10 +39,10 @@
0
       Daemonize.daemonize(File.expand_path(@log_file))
0
       
0
       Dir.chdir(pwd)
0
+
0
+ write_pid_file
0
       
0
       trap('HUP') { restart }
0
-
0
- write_pid_file
0
       at_exit do
0
         log ">> Exiting!"
0
         remove_pid_file
0
@@ -75,7 +75,7 @@
0
     
0
     # Restart the server
0
     def restart
0
- raise ArgumentError, "Can't restart, no on_restart block specified" unless @on_restart
0
+ raise ArgumentError, "Can't restart, no 'on_restart' proc specified" unless @on_restart
0
       log '>> Restarting ...'
0
       stop
0
       remove_pid_file

Comments

    No one has commented yet.