Created
July 10, 2014 02:58
-
-
Save jcypret/94d94e71ac2d724bdcc7 to your computer and use it in GitHub Desktop.
WordPress Rack Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler' | |
Bundler.require | |
use Rack::ShowExceptions | |
use Rack::Legacy::Index | |
use Rack::Legacy::Php | |
run Rack::File.new Dir.getwd | |
class Rack::Legacy::Php | |
def valid? path | |
return true | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rack' | |
gem 'rack-legacy' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment