lib/falcon/command/serve.rb
# Prepare the environment and run the controller.
Prepare the environment and run the controller.
Prepare the environment and run the controller .
def call
				Console.logger.info(self) do |buffer|
					buffer.puts "Falcon v#{VERSION} taking flight! Using #{self.container_class} #{self.container_options}."
					buffer.puts "- Binding to: #{self.endpoint}"
					buffer.puts "- To terminate: Ctrl-C or kill #{Process.pid}"
					buffer.puts "- To reload configuration: kill -HUP #{Process.pid}"
				end
				if path = @options[:preload]
					full_path = File.expand_path(path)
					load(full_path)
				end
				begin
					Bundler.require(:preload)
				rescue Bundler::GemfileNotFound
				end
				if GC.respond_to?(:compact)
					GC.compact
				end
				self.controller.run
			end
def call Console . logger . info ( self ) do | buffer | buffer . puts "Falcon v#{VERSION} taking flight! Using #{self.container_class} #{self.container_options}." buffer . puts "- Binding to: #{self.endpoint}" buffer . puts "- To terminate: Ctrl-C or kill #{Process.pid}" buffer . puts "- To reload configuration: kill -HUP #{Process.pid}" end if path = @options [ :preload ] full_path = File . expand_path ( path ) load ( full_path ) end begin Bundler . require ( :preload ) rescue Bundler :: GemfileNotFound end if GC . respond_to? ( :compact ) GC . compact end self . controller . run end
Prepare the environment and run the controller.
Prepare the environment and run the controller .
# Ignore.