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

Problem with Deploying Treebook to Heroku Part 2

I got Treebook up on the Heroku server, and I can access it. But, none of the CSS or dynamic content is showing up. It just looks like basic html. Any ideas?

It seems like the remote server is running Ruby 2.0.0, while I built it in 1.9.3. This is the only obvious thing I can find in the logs. I did run heroku run rake db:migrate and that didn't help.

Here's my heroku URL: http://peaceful-savannah-1597.herokuapp.com/

Help!

2 Answers

Allright! I figured it out thanks to Stack Exchange.

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.

Parker Busswood
Parker Busswood
20,207 Points

Just had the exact same issue, tried your syntax for specifying the Ruby version in the Gemfile and it didn't work for me. Adding this code right below "source 'https://rubygems.org'" worked for me:

ruby '1.9.3'

Then running the git commands you listed worked perfectly. Thanks!