2 require 'commands/servers/base'
7 options
.insert(0,'start') unless Thin
::Runner.commands
.include?(options
[0])
9 thin
= Thin
::Runner.new(options
)
11 puts
"=> Rails #{Rails.version} application starting on http://#{thin.options[:address]}:#{thin.options[:port]}"
12 puts
"=> Ctrl-C to shutdown server"
14 log
= Pathname
.new("#{File.expand_path(RAILS_ROOT)}/log/#{RAILS_ENV}.log").cleanpath
15 open(log
, (File
::WRONLY | File
::APPEND | File
::CREAT)) unless File
.exist
? log
16 tail_thread
= tail(log
)
22 tail_thread
.kill
if tail_thread