Mobile app version of vmapp.org
Login or Join
Yeniel560

: Can't get heroku site updated on custom domain I have hosayif.com registered at GoDaddy, and I set up a cname for rails.hosayif.com to point to my heroku app at sharp-meadow-6535.herokuapp.com.

@Yeniel560

Posted in: #Godaddy #Heroku #RubyOnRails

I have hosayif.com registered at GoDaddy, and I set up a cname for rails.hosayif.com to point to my heroku app at sharp-meadow-6535.herokuapp.com.

I set this up with a previous app, and it worked. I made a new app, renamed the old one, and then renamed the new one so that it is sharp-meadow-6535.herokuapp.com in hopes of not having to change anything at GoDaddy.

In theory, rails.hosayif.com and sharp-meadow-6535.herokuapp.com should be the same site, but they are not. Can someone tell me what I am doing wrong?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel560

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ravi8258870

Just did a DNS lookup: rails.hosayif.com >> canonical name = sharp-meadow-6535.herokuapp.com.

Non-authoritative answer:
rails.hosayif.com canonical name = sharp-meadow-6535.herokuapp.com.
sharp-meadow-6535.herokuapp.com canonical name = ar.herokuapp.com.
ar.herokuapp.com canonical name = argon-stack-1879049447.us-east-1.elb.amazonaws.com.
Name: argon-stack-1879049447.us-east-1.elb.amazonaws.com
Address: 107.20.215.233
Name: argon-stack-1879049447.us-east-1.elb.amazonaws.com
Address: 174.129.244.122
Name: argon-stack-1879049447.us-east-1.elb.amazonaws.com
Address: 23.21.103.189
Name: argon-stack-1879049447.us-east-1.elb.amazonaws.com
Address: 50.17.250.204
Name: argon-stack-1879049447.us-east-1.elb.amazonaws.com
Address: 107.20.177.118
Name: argon-stack-1879049447.us-east-1.elb.amazonaws.com
Address: 107.21.208.103
Name: argon-stack-1879049447.us-east-1.elb.amazonaws.com
Address: 174.129.252.230
Name: argon-stack-1879049447.us-east-1.elb.amazonaws.com
Address: 23.21.154.16


Looks fine to me from a technical standpoint. Visiting rails.hosayif.com/, I see:

Welcome aboard
You’re riding Ruby on Rails!

Getting started
Here’s how to get rolling:

Use rails generate to create your models and controllers

To see all available options, run it without parameters.
Set up a default route and remove public/index.html

Routes are set up in config/routes.rb.
Create your database

Run rake db:create to create your database. If you're not using SQLite (the default), edit config/database.yml with your username and password.


Visiting "http://sharp-meadow-6535.herokuapp.com/" I see:

This should not be the default rails index.html page.


In theory, rails.hosayif.com and sharp-meadow-6535.herokuapp.com should be the same site, but they are not. Can someone tell me what I am doing wrong?

Rails may not be listening on the old domain anymore, since its a CNAME or A-record, which is only going to tell it the IP address of the application, and use the "referring domain" to go to your site accordingly. It's supposed to listen only on the new domain, correct?

So I'd say everything is working.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme