These are some notes to remind me how to spin up a new rails app, point it to a URL I bought from Google App Engine, and configure the DNS so my Heroku app points to my www domain.

1. Build your app.

2. Deploy it.

> heroku create –stack cedar
> git push heroku master
> heroku run rake db:migrate

Note the URL of the deployed app in Heroku

—–> Launching… done, v7
http://foo-bar-000.herokuapp.com deployed to Heroku

3. Tell Heroku to point to your domain.

$ heroku domains:add http://www.yourapp.com
Adding http://www.yourapp.com to myapp… done

4. Login into your Google Apps Cpanel domain

google.com/a/yourapp.com

5. Point to your heroku instance.

Domain settings -> Domain names -> Advanced DNS settings

google-domain-settings
Note your URL and password and log into GoDaddy to make DNS config changes.

-> Sign into DNS console

sign-in-dns-console2
The modify the www setting to point to heroku instance.

modify-www-entry-dns

That’s it! You are done.