Skip to content

Instantly share code, notes, and snippets.

@nrmitchi
Created March 24, 2016 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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