Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

Rails app Social Media project - what's missing?

I followed the Ruby on Rails tutorials and managed to get the 'treebook' application running on my localhost, however, when I deployed to heroku I seem to be missing something.

Functionally everything is working as expected and I am experiencing no errors, however, my feed/statuses are not appearing and images don't seem to be getting displayed. I'm guessing heroku needs imagemagick or something along those lines?

Would appreciate if you could provide any assistance as to what might be missing. Here's the URL; http://serene-refuge-1602.herokuapp.com/

3 Answers

Stone Preston
Stone Preston
42,016 Points

did you configure your rails app to use postgresql in production instead of sql lite? heroku wont work with sql lite

Hi Stone, thanks for the response. I'm fairly confident I'm set up for postgresql. It's set up on my heroku dashboard and is running. Also I wouldn't be able to register or login if the db wasn't set up so unfortunately that's not the issue. Also, here's my gemfile excerpt for same;

group :development, :test do gem 'sqlite3' gem 'log_buddy' end

group :production do gem "pg" end

Stone Preston
Stone Preston
42,016 Points

did you prepare the database on heroku?

Stone Preston
Stone Preston
42,016 Points

cant remember the command of the top of my head. something like heroku run rake

Yup, think it was one of the last steps I done;

"heroku run rake db:migrate"

Stone Preston
Stone Preston
42,016 Points

hmm I figured that would have been it. I guess you could try removing the app from heroku and adding again

hmmm.... perhaps... pity there's no way to do a comparison :(

Is it possible to SFTP to Heroku do you know?

Stone Preston
Stone Preston
42,016 Points

no idea. The only thing ive done with heroku is what was done in the videos

Well happy days Stone amigo... it seemed to work 2nd time around.

Thanks for the advice :))

Stone Preston
Stone Preston
42,016 Points

nice! glad you got it working