Module: Bridgetown::Rack::Environment::Falcon
- Defined in:
- bridgetown-core/lib/bridgetown-core/rack/environments/falcon.rb
Instance Method Summary collapse
-
#bind ⇒ Object
-
#command ⇒ Object
-
#options ⇒ Object
-
#port ⇒ Object
-
#rack_config ⇒ Object
-
#scheme ⇒ Object
-
#workers ⇒ Object
Instance Method Details
#bind ⇒ Object
15 16 17 |
# File 'bridgetown-core/lib/bridgetown-core/rack/environments/falcon.rb', line 15 def bind @bind || "#{scheme}://localhost" end |
#command ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'bridgetown-core/lib/bridgetown-core/rack/environments/falcon.rb', line 31 def command ["falcon", "serve", "--bind", bind, "--port", port.to_s, "--config", rack_config, "--count", workers.to_s, *,] end |
#options ⇒ Object
27 28 29 |
# File 'bridgetown-core/lib/bridgetown-core/rack/environments/falcon.rb', line 27 def [] end |
#port ⇒ Object
7 8 9 |
# File 'bridgetown-core/lib/bridgetown-core/rack/environments/falcon.rb', line 7 def port @port || ENV["BRIDGETOWN_PORT"] || "4000" end |
#rack_config ⇒ Object
19 20 21 |
# File 'bridgetown-core/lib/bridgetown-core/rack/environments/falcon.rb', line 19 def rack_config "config.ru" end |
#scheme ⇒ Object
11 12 13 |
# File 'bridgetown-core/lib/bridgetown-core/rack/environments/falcon.rb', line 11 def scheme :https end |
#workers ⇒ Object
23 24 25 |
# File 'bridgetown-core/lib/bridgetown-core/rack/environments/falcon.rb', line 23 def workers 1 end |