lib/hyla/commands/serve.rb in hyla-1.0.7.pre.7 vs lib/hyla/commands/serve.rb in hyla-1.0.7.pre.8
- old
+ new
@@ -27,26 +27,26 @@
#s = HTTPServer.new(webrick_options(my_opts))
s = HTTPServer.new(my_opts)
s.mount(my_opts[:baseurl],HTTPServlet::FileHandler, destination, fh_option)
- Hyla.logger.info "Server address:", "http://#{s.config[:BindAddress]}:#{s.config[:Port]}"
+ Hyla.logger2.info "Server address:", "http://#{s.config[:BindAddress]}:#{s.config[:Port]}"
if options[:detach] # detach the server
pid = Process.fork { s.start }
Process.detach(pid)
- Hyla.logger.info "Server detached with pid '#{pid}'.", "Run `kill -9 #{pid}' to stop the server."
+ Hyla.logger2.info "Server detached with pid '#{pid}'.", "Run `kill -9 #{pid}' to stop the server."
else # create a new server thread, then join it with current terminal
t = Thread.new { s.start }
trap("INT") { s.shutdown }
t.join()
end
end
def self.start_callback(detached)
unless detached
- Proc.new { Hyla.logger.info "Server running...", "press ctrl-c to stop." }
+ Proc.new { Hyla.logger2.info "Server running...", "press ctrl-c to stop." }
end
end
def self.mime_types
mime_types_file = File.expand_path('../../../data/mime.types', File.dirname(__FILE__))
\ No newline at end of file