1

While following the Ruby on Rails Tutorial I successfully git push heroku master. However I don't get the same output as the author - he sees the same "hello world" text that I see in my c9 environment. But I only get the following error:

Cannot GET /devonparsons/rails-tutorialasdofne.herokuapp.com?_c9_id=livepreview1&_c9_host=https://ide.c9.io

Due to the vague naming of this error it's kind of hard to troubleshoot. As far as I can tell by googling, Cannot GET is a result of there not being anything TO get. This question states the problem might be with your .gitignore file, so I tried commenting out some lines there, but it did not help.

I noticed that it the error string is mashing my 'random' subdomain (asdofne) against "rails-tutorial", which looks wrong, but I don't know what it means.

How do I fix this error?

Community
  • 1
  • 1
Devon Parsons
  • 1,234
  • 14
  • 23

2 Answers2

3

I have gone through your heroku logs result and noticed that URL of your heroku application doesn't append with http://. You need to append your heroku app url asdofne.herokuapp.com with http://

Results https://asdofne.herokuapp.com

AMIC MING
  • 6,306
  • 6
  • 46
  • 62
Dharmesh Rupani
  • 1,029
  • 2
  • 12
  • 22
0

The link looks funny. I remember that this happens when I create an HTML link and then forget to prepend it with http://. Could it be that something like that happened? It looks like it's taking a, what's supposed to be absolute url, and turning it into a relative one.

Ruben Daniels
  • 856
  • 4
  • 3