Skip to content

Instantly share code, notes, and snippets.

@nrmitchi
Created January 3, 2015 23:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nrmitchi/492d94058192c9fa2b90 to your computer and use it in GitHub Desktop.
Save nrmitchi/492d94058192c9fa2b90 to your computer and use it in GitHub Desktop.

These files will have to be copied/cloned into the same directory that contains your public directory, which, depending on your setup, could be your application directory, or your ~/.pow/<application> directory (if you use a symlink for public)

You can also add tmp/restart.txt, and using touch tmp/restart.txt to restart Pow

# 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"
source 'https://rubygems.org'
gem "rack"
gem "rack-rewrite"
GEM
remote: https://rubygems.org/
specs:
rack (1.6.0)
rack-rewrite (1.5.1)
PLATFORMS
ruby
DEPENDENCIES
rack
rack-rewrite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment