electronic.alchemy
where the past meets the future
start > pike > Fins > FinServe

FinServe

Created by hww3. Last updated by hww3, 116 days ago. Version #8.

FinServe is a simple web server which can serve a Fins application. Primarily intended as a development tool, FinServe may also be useful when fronted by a full web server such as Apache or Roxen.

FinServe is bundled with the Fins framework, and is run using the following command line:

pike -x fins start [-p portnum|--port=portnum|--hilfe] [-s ram|file|sqlite|--session-manager=ram|file|sqlite [-l storage_path|--session-storage-location=storage_path]] [-c|--config configname] [-d]  appname

If you specify a port number, FinServe will start an HTTP listener on that port (the default is 8080). If you specify "hilfe", FinServe will load the application and drop you to an interactive Pike session. The Fins application will be loaded and made available as the variable "application". From there, you may access the model, view and controller directly, which is useful for debugging the model and many other tasks.

If you have the Protocols.DNS_SD module, you'll get a Bonjour Bookmark in your browser which supports Bonjour (Rendezvous), such as Safari or Camino.

The command line option -d causes FinServe to run in daemon mode.

The following configuration file values are used by FinServe, describing the default values:

[web]
# defaults to ram, options include sqlite or file
session_storage_type=ram
# used for file or sqlite storage, this is the path
# to the database file or file storage location
session_storage_location=
# timeout period for sessions, in seconds
session_timeout=600

No comments | Post a Comment| RSS Feed | BackLinks