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 trialMichael Williams
8,074 PointsHeroku pictures
Hey guys,
So I'm trying to get my pictures to upload on Heroku and have been unsuccessful. I have changed the
config.serve_static_assets = false
to
config.serve_static_assets = true
I have also looked through the heroku manual and it is very unclear about this issue at least to me.
Does anyone have an idea how to get it to work?
Thanks!
Michael Williams
8,074 PointsThe only error so far is when I run
"rake assets:precompile RAILS_ENV=production"
it says rake aborted!
ActiveRecord::AdapterNotSpecified: database configuration does not specify adapter
I'm currently reading about using add-ons like carrierwave and Cloudinary. Is that the way to go?
Michael Williams
8,074 PointsAdam Sackfield
Courses Plus Student 19,663 PointsNot too sure about the add ons. Does this stackoverflow solution fix your issue?
Michael Williams
8,074 PointsHaha unfortunately they made it worse. So it that a no to the add ons or a I don't know?
Michael Williams
8,074 PointsYeah I have no idea.
Adam Sackfield
Courses Plus Student 19,663 PointsIt's an I don't know about the add-ons. Have you contacted Heroku support?
Michael Williams
8,074 PointsLol! Genius. I'll do that thanks man.
Michael Williams
8,074 PointsHey actually I just found this!
https://devcenter.heroku.com/articles/rails-4-asset-pipeline
I'lll give this a try first then call thanks for your help Adam!!!
Michael Williams
8,074 PointsHey Adam,
Still can't figure it out... Is there any other suggestions?
2 Answers
Artem Kalinchuk
Courses Plus Student 1,814 PointsCould this have anything to do with it:
ActiveRecord::AdapterNotSpecified: database configuration does not specify adapter
Michael Williams
8,074 PointsHey Artem,
I actually don't know? I gave up and deleted it lol!... I think I am suppose to put my assets in the public folder... Not sure if that will work but I am going to try it later tonight so will see.
Does that sound like a solution?
Thanks for answering man!
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsWhat errors are you getting?