Sha256: d8779f1e856f77e39ca1dacdf57a91ee9416bdf93e3603ddfcc0ce997324d0b8
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 Bytes
Contents
#!/usr/bin/env /usr/local/rvm/rubies/ruby-1.9.3-p0/bin/ruby # for ruby 1.9.2-p180 __user_home = "/home/USER_NAME" __rails_root = "" __rails_root = __user_home + __rails_root ENV['GEM_HOME'] = __user_home + "/.gem/ruby/1.9.1/" ENV['GEM_PATH'] = ENV['GEM_HOME'] ENV['RAILS_ENV'] ||= 'production' require 'rubygems' require 'rack' require 'fcgi' include Rack require_relative "../config/environment" class Rack::PathInfoRewriter def initialize(app) @app = app end def call(env) env.delete('SCRIPT_NAME') parts = env['REQUEST_URI'].split('?') env['PATH_INFO'] = parts[0] env['QUERY_STRING'] = parts[1].to_s @app.call(env) end end Handler::FastCGI.run Rack::PathInfoRewriter.new(<%= application_name %>)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flx-tools-0.3.2 | lib/generators/flux_flex/templates/flx_dispatch.fcgi |