rubyzome/config.ru

30 lines
821 B
Text
Raw Normal View History

2010-03-19 16:13:08 +00:00
# The code in this file is part of the Rubyzome framework
# Rubyzome framework belongs to Luc Juggery and Yann Esposito
require 'rubygems'
require 'rack'
# TODO: find a better way to manage $view, may be using Rubyzome module
# n.b.: load the entire local application (/app files)
2010-03-22 13:04:38 +00:00
require 'rubyzome/rubyzome.rb'
2010-03-19 16:13:08 +00:00
# ----------------------------
# -- specific configuration --
# TODO: make a file containing central configuration only
# beware the name will not match one of
# a REST resource of the application
$directory_of_website='/website'
2010-03-22 14:18:46 +00:00
# TODO: one central configuration proposition
$mysql_user='rubyzome'
$mysql_password='rubyzome'
$mysql_host='mysql_rubyzome_server'
$mysql_database='rubyzome'
2010-03-19 16:13:08 +00:00
# -- end of specific configuration --
# -----------------------------------
2010-03-22 14:18:46 +00:00
run Rubyzome::RestfulDispatcher.new
2010-03-19 16:13:08 +00:00