Browse files

Added URL var

  • Loading branch information...
1 parent b300f18 commit 692d270cfd88119d86cb42e7be6d91710ce8933f @robertgaal committed Jan 17, 2013
Showing with 12 additions and 2 deletions.
  1. BIN .DS_Store
  2. +9 −1
  3. +3 −1
Binary file not shown.
@@ -1,4 +1,12 @@
-A tiny app that let's you park your domain names at Heroku. Simply create this as a new app on Heroku, and [add custom domains to it]( This works great if your registrar charges you for a redirect, or if you just like Heroku as an interface for this.
+A tiny app that let's you park your domain names at Heroku.
+1. Change the URL in config.yml to your domain name.
+2. Create a domain park app on Heroku, and push this code to it.
+3. [Add custom domains to the app](
+4. [Change your DNS setting of the domain you'd like to point to Heroku](
+5. Your domain is now parked, and will 301 redirect traffic to your chosen site.
+This is alternative to paying your registrar for redirects for the domains you're not using yet. And thanks to Heroku's command line interface, it's very easy to add domains quickly.
@@ -1,7 +1,9 @@
require 'sinatra'
+@url = ''
get '*' do
- redirect '', 301
+ redirect @url, 301
run Sinatra::Application

0 comments on commit 692d270

Please sign in to comment.