Upgrade to Rails 2.2.0
As a side benefit, fix an (non-user-visible) bug in display_s5(). Also fixed a bug where removing orphaned pages did not expire cached summary pages.
This commit is contained in:
parent
39348c65c2
commit
7600aef48b
827 changed files with 123652 additions and 11027 deletions
25
vendor/rails/railties/lib/commands/servers/thin.rb
vendored
Normal file
25
vendor/rails/railties/lib/commands/servers/thin.rb
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
require 'rbconfig'
|
||||
require 'commands/servers/base'
|
||||
require 'thin'
|
||||
|
||||
|
||||
options = ARGV.clone
|
||||
options.insert(0,'start') unless Thin::Runner.commands.include?(options[0])
|
||||
|
||||
thin = Thin::Runner.new(options)
|
||||
|
||||
puts "=> Rails #{Rails.version} application starting on http://#{thin.options[:address]}:#{thin.options[:port]}"
|
||||
puts "=> Ctrl-C to shutdown server"
|
||||
|
||||
log = Pathname.new("#{File.expand_path(RAILS_ROOT)}/log/#{RAILS_ENV}.log").cleanpath
|
||||
open(log, (File::WRONLY | File::APPEND | File::CREAT)) unless File.exist? log
|
||||
tail_thread = tail(log)
|
||||
trap(:INT) { exit }
|
||||
|
||||
begin
|
||||
thin.run!
|
||||
ensure
|
||||
tail_thread.kill if tail_thread
|
||||
puts 'Exiting'
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue