instance method restart!

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

restart!()

No documentation comment.

Source
# File railties/lib/fcgi_handler.rb, line 188
    def restart!
      config       = ::Config::CONFIG
      ruby         = File::join(config['bindir'], config['ruby_install_name']) + config['EXEEXT']
      command_line = [ruby, $0, ARGV].flatten.join(' ')

      dispatcher_log :info, "restarted"

      # close resources as they won't be closed by
      # the OS when using exec
      logger.close rescue nil
      Rails.logger.close rescue nil

      exec(command_line)
    end

Defined in railties/lib/fcgi_handler.rb line 188 · View on GitHub · Improve this page · Find usages on GitHub

Defined in RailsFCGIHandler

Type at least 2 characters to search.

↑↓ navigate · open · esc close