Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Mary Fernandez
Mary Fernandez
510 Points

Commit not showing on github

I followed the video to publish a new post, and everything looks good inside terminal as if I had made the changes, but the changes don't upload to github. Also, when I try to view localhost:4000 it says, "`/' not found." What am I doing wrong?

4 Answers

Mary Fernandez
Mary Fernandez
510 Points

UPDATE: After waiting a while, I tried loading the page again and now it shows the new post! I do have a couple other questions though:

  1. Whenever I want to upload changes, do I always push them to master or do I push to the gh-pages branch?

  2. When I try to view it with the local server running and the url localhost:4000, I get a page that says "Not Found `/' not found. WEBrick/1.3.1 (Ruby/2.0.0/2014-05-08) at localhost:4000". Why is that?

Thanks so much!

Great! I'm guessing you're doing the Jekyll course. I haven't got to that course yet, so I don't want to give you wrong the wrong info. Being that your initial problem is solved maybe you can open a new thread.

Did you push your changes to the remote repo on Github?

Mary Fernandez
Mary Fernandez
510 Points

Yes, I used the command "git push origin master" and it said "Everything up-to-date" but the changes aren't reflected on Github. Then I tried "git push origin HEAD:master" and then the changes uploaded to Github, but when I refresh my page it still looks the same (no new post).