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 trialEmmett Traynor
134 PointsRails 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
42,016 Pointsdid you configure your rails app to use postgresql in production instead of sql lite? heroku wont work with sql lite
Emmett Traynor
134 PointsHi 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
42,016 Pointsdid you prepare the database on heroku?
Stone Preston
42,016 Pointscant remember the command of the top of my head. something like heroku run rake
Emmett Traynor
134 PointsYup, think it was one of the last steps I done;
"heroku run rake db:migrate"
Stone Preston
42,016 Pointshmm I figured that would have been it. I guess you could try removing the app from heroku and adding again
Emmett Traynor
134 Pointshmmm.... perhaps... pity there's no way to do a comparison :(
Is it possible to SFTP to Heroku do you know?
Stone Preston
42,016 Pointsno idea. The only thing ive done with heroku is what was done in the videos
Emmett Traynor
134 PointsWell happy days Stone amigo... it seemed to work 2nd time around.
Thanks for the advice :))
Stone Preston
42,016 Pointsnice! glad you got it working