= about ServerSide
ServerSide is an HTTP server framework designed to be as fast as possible, and
as easy as possible to use. ServerSide includes a full-featured HTTP server, a
controller-view system and a bunch of other tools to easily create servers and
clusters of servers.
== Installation
sudo gem install serverside
== Source Code
http://serverside.googlecode.com/svn/
== The Daemon
Once you have the ServerSide gem installed, you can use the serverside
script to control servers. For example:
serverside -p 8000 start .
will start an HTTP server, serving the content of the working directory. You can
stop the server by running serverside stop .
== Serving Dynamic Content
You can use the ServerSide::Application and ServerSide::Controller classes to
create dynamic web applications. The ServerSide framework also lets you route
requests based on any attribute of incoming requests, such as host name, path,
URL parameters etc.
To start your app, you can either supply the serverside script with
your Ruby code file:
serverside start ~/myapp/myapp.rb
Or you can put your code in a file called serverside.rb and tell the
serverside script the directory path:
serverside start /home/nc/reality/production
The script will then load /home/nc/reality/production/serverside.rb and
take care of everything else.
== Running a Cluster of Servers
ServerSide makes it easy to control a cluster of servers. Just supply a range of
ports instead of a single port:
serverside -p 8000..8009 start .