2 cursor
= File
.size(log_file
)
3 last_checked
= Time
.now
4 tail_thread
= Thread
.new
do
5 File
.open(log_file
, 'r') do |f
|
8 if f
.mtime
> last_checked
11 cursor
+= contents
.length
23 require_library_or_gem
'ruby-debug'
25 Debugger
.settings
[:autoeval] = true if Debugger
.respond_to
?(:settings)
26 puts
"=> Debugger enabled"
28 puts
"You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"