Skip to content

Instantly share code, notes, and snippets.

@nrmitchi
Created March 24, 2016 02:27
Show Gist options
  • Save nrmitchi/9c4b7481bc0181332c58 to your computer and use it in GitHub Desktop.
Save nrmitchi/9c4b7481bc0181332c58 to your computer and use it in GitHub Desktop.
# config.ru
gem 'rack-rewrite', '~> 1.5.1'
require 'rack/rewrite'
use Rack::Rewrite do
rewrite %r{^(.*)}, '/index.html'
end
run Rack::File.new "#{Dir.getwd}/public"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment