Sha256: da8d635d7e6419f12069608f2eb78efa29c18199c3677283844f9a56e021bcb7

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

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 put and custom formatters in lib/formatters.rb.
require "#{::File.expand_path(::File.dirname(__FILE__))}/lib/formatters.rb"

# 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

4 entries across 4 versions & 1 rubygems

Version Path
table_setter-0.2.12 template/config.ru
table_setter-0.2.11 template/config.ru
table_setter-0.2.10 template/config.ru
table_setter-0.2.9 template/config.ru