Skip to content

Instantly share code, notes, and snippets.

@ngs
Created October 7, 2012 06:55
Show Gist options
  • Save ngs/3847357 to your computer and use it in GitHub Desktop.
Save ngs/3847357 to your computer and use it in GitHub Desktop.
config.ru for Cake PHP project
require 'rack'
require 'rack-legacy'
use Rack::Legacy::Php, Dir.getwd
use Rack::Static, :urls => %w{/css /files /img /js /favicon.ico}, :root => "app/webroot"
run Rack::File.new Dir.getwd
@mjc
Copy link

mjc commented Jan 14, 2014

I added some other features on my fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment