Sha256: 182f754ccc911713608a9e8fafdd0efa20dd5e00fb8fa81b43cc39813fc3354c

Contents?: true

Size: 998 Bytes

Versions: 17

Compression:

Stored size: 998 Bytes

Contents

#!/usr/bin/env ruby

# This is the rackup file for TableSetter, you can use it to run the application through any rack
# enabled web server.
#
# For example this will spin up a thin instance:
# 
# thin start -R ./config.ru
# 
# To run it in apache you should have Passenger enabled, and follow the instructions in the 
# passenger docs:
#
# http://www.modrails.com/documentation/Users%20guide.html#_deploying_a_rack_based_ruby_application

require 'rubygems'
require 'table_setter'
TableSetter.configure(File.dirname(__FILE__))


# You should probably enable Rack::Cache if you're not behind a caching proxy, by uncommenting the
# lines below:
#
#require 'rack/cache'
#use Rack::Cache,
#  :metastore   => "file:#{TableSetter.config_path}/tmp/meta",
#  :entitystore => "file:#{TableSetter.config_path}/tmp/body"
#
# You can tweak the cache timeout for TableSetter by setting the timeout variable on
# TableSetter::App: 
#
TableSetter::App.cache_timeout = 60 * 15 # 15 minutes
#
run TableSetter::App

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
table_setter-0.2.5 template/config.ru
table_setter-0.2.4 template/config.ru
table_setter-0.2.3 template/config.ru
table_setter-0.2.2 template/config.ru
table_setter-0.2.1 template/config.ru
table_setter-0.2.0 template/config.ru
table_setter-0.1.11 template/config.ru
table_setter-0.1.10 template/config.ru
table_setter-0.1.9 template/config.ru
table_setter-0.1.8 template/config.ru
table_setter-0.1.7 template/config.ru
table_setter-0.1.6 template/config.ru
table_setter-0.1.5 template/config.ru
table_setter-0.1.4 template/config.ru
table_setter_generator-0.1.0 templates/ts/config.ru
table_setter-0.1.3 template/config.ru
table_setter-0.1.2 template/config.ru