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 trialBen Lewis
6,201 PointsProblem with Deploying Treebook to Heroku
Hi,
I'm following along with Jim but when he got the public key error, then did heroku keys:add, it didn't work for me. I'm still seeing:
treebook (master)$ git push heroku master Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
How do I fix the access rights?
Thanks
Ben Lewis
6,201 PointsActually, I have a new error. I got Treebook up on the Heroku server, but none of the CSS is showing up. It just looks like basic html. Any ideas?
Jason Seifer
Treehouse Guest TeacherWhat does your deployment output say? Try following along here for more info.
Ben Lewis
6,201 PointsHi Jason,
I actually already figured it out. Here's what I did:
I added ruby: '1.9.3' to my gemfile.
I aso ran these commands to make sure public.html had been deleted from the repo. The first time around, I ran "git add ." which apparently doesn't work the same as "git add -A"
git add -A git commit -m "blabla" git push origin master git push heroku master
Now it's working. Phew.
1 Answer
John Paul Ashenfelter
1,118 PointsSolved in the reply
Way to go Jason and Ben.
Ben Lewis
6,201 PointsBen Lewis
6,201 PointsAh, I figured it out. I had to add a new SSH key by typing ssh-keygen -t rsa. Then I ran heroku keys:add again and chose the "id" key.