Sha256: 140d1795fb5be49fe799f85f8c23fae5e5a26db25c619013dc2b61082cff4632

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 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

2 entries across 2 versions & 1 rubygems

Version Path
table_setter-0.2.8 template/config.ru
table_setter-0.2.7 template/config.ru