Module: Lively::Environment::HTTP

Includes:
Falcon::Environment::Server, Middleware
Defined in:
lib/lively/environment/http.rb

Overview

Falcon (TCP/HTTP) environment for Lively applications.

Combines Falcon::Environment::Server for HTTP transport with Middleware for application and asset serving.

Instance Method Summary collapse

Methods included from Middleware

#application, #middleware, #root

Instance Method Details

#countObject

The number of worker processes/threads to run.



29
30
31
# File 'lib/lively/environment/http.rb', line 29

def count
	1
end

#urlObject

The URL this server binds to.



23
24
25
# File 'lib/lively/environment/http.rb', line 23

def url
	ENV.fetch("LIVELY_URL", "http://localhost:9292")
end