Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/discourse/files/discourse.fcgi

Issue 9422170: Run Discourse via Thin rather than FGCI (Closed)
Patch Set: Created Feb. 27, 2013, 1:34 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: modules/discourse/files/discourse.fcgi
===================================================================
deleted file mode 100644
--- a/modules/discourse/files/discourse.fcgi
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/ruby
-
-require 'etc'
-
-Dir.chdir(File.dirname(__FILE__))
-ENV['RAILS_ENV'] ||= 'production'
-ENV['GEM_HOME'] = "#{Etc.getpwuid.dir}/.gems"
-ENV['GEM_PATH'] = "#{ENV['GEM_HOME']}:/var/lib/gems/1.9.1"
-
-require 'fcgi'
-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
-
-Rack::Handler::FastCGI.run Rack::PathInfoRewriter.new(Discourse::Application)
« no previous file with comments | « no previous file | modules/discourse/files/init-discourse » ('j') | modules/discourse/files/intraforum.adblockplus.org » ('J')

Powered by Google App Engine
This is Rietveld