Created
May 30, 2013 07:58
-
-
Save carlhoerberg/5676365 to your computer and use it in GitHub Desktop.
Simple redirect app with Ruby Rack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| run proc { [301, {"Location" => 'http://www.example.com'}, []] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| gem 'rack' | |
| gem 'puma' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| web: puma -p $PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment