Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added URL var

  • Loading branch information...
commit 692d270cfd88119d86cb42e7be6d91710ce8933f 1 parent b300f18
@robertgaal authored
Showing with 12 additions and 2 deletions.
  1. BIN  .DS_Store
  2. +9 −1 README.md
  3. +3 −1 config.ru
View
BIN  .DS_Store
Binary file not shown
View
10 README.md
@@ -1,4 +1,12 @@
domainpark
==========
-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](https://devcenter.heroku.com/articles/custom-domains). 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](https://devcenter.heroku.com/articles/custom-domains#heroku-setup).
+4. [Change your DNS setting of the domain you'd like to point to Heroku](https://devcenter.heroku.com/articles/custom-domains#dns-setup).
+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.
View
4 config.ru
@@ -1,7 +1,9 @@
require 'sinatra'
+@url = 'http://robertgaal.com'
+
get '*' do
- redirect 'http://robertgaal.com', 301
+ redirect @url, 301
end
run Sinatra::Application
Please sign in to comment.
Something went wrong with that request. Please try again.