Skip to content

Instantly share code, notes, and snippets.

@carlhoerberg
Created May 30, 2013 07:58
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 carlhoerberg/5676365 to your computer and use it in GitHub Desktop.
Save carlhoerberg/5676365 to your computer and use it in GitHub Desktop.
Simple redirect app with Ruby Rack
run proc { [301, {"Location" => 'http://www.example.com'}, []] }
source 'https://rubygems.org'
gem 'rack'
gem 'puma'
web: puma -p $PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment