Sha256: 3403006e106eb2ab638c1ae9f62fbb65a3ff964a347269f215c404748e7acf58

Contents?: true

Size: 1.37 KB

Versions: 12

Compression:

Stored size: 1.37 KB

Contents

########################
# RackServer rack interface
#
# using Rack with Plezi poses some limitations...:
#
# 1. only the first service (and all it's virtual hosts) will be running.
#    (only the first `listen` call and all it's related `host` calls)
#
# 2. there is NO WebSockets support for Rack apps.
#
# 3. this WILL BREAKE any streaming / asynchronous methods calls that use the Plezi events engine.
#
# 4. Plezi parameters and file uploads are different then Rack - HTML Form code might be incompatible!
#    This MIGHT BREAKE YOUR CODE! (changing this requires Plezi to re-parse the HTML, and costs in performance).
#
# also, all Plezi server specific configuration will be ignored.
#
# on the other hand, there is an upside:
#
# 1. you can choose a well tested server written in C that might (or might not) bring a performance boost.
#
# 2. you have better control over Middleware then you could have with Plezi.
# ("wait", you might say, "there is no Middleware in Plezi!"... "Ahhh", I will answer, "so much to discover...")

PLEZI_ON_RACK = true

# load all framework and gems
load ::File.expand_path(File.join("..", "environment.rb"),  __FILE__)

# set up the routes
load ::File.expand_path(File.join("..", "routes.rb"),  __FILE__)

# start the plezi EM, to make sure that the plezi async code doesn't break.
Plezi::EventMachine.start Plezi.max_threads

# run the Rack app
run Plezi::DSL

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
plezi-0.10.2 resources/config.ru
plezi-0.10.1 resources/config.ru
plezi-0.9.2 resources/config.ru
plezi-0.9.1 resources/config.ru
plezi-0.9.0 resources/config.ru
plezi-0.8.7 resources/config.ru
plezi-0.8.6 resources/config.ru
plezi-0.8.5 resources/config.ru
plezi-0.8.4 resources/config.ru
plezi-0.8.3 resources/config.ru
plezi-0.8.2 resources/config.ru
plezi-0.8.1 resources/config.ru