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 trialEric Gurinowitsch
3,363 PointsDeploying Heroku
When I deployed my app to Heroku all of my links quit working. All I get is "We're sorry, but something went wrong". When I test it local everything works great. Also when I deployed to Heroku I received no error messages.
Has this happened to anyone else? Any ideas?
2 Answers
Eric Gurinowitsch
3,363 PointsAbout an hour after I posted this I figured it out. I had to run:
$heroku rake run db:reset $heroku rake run db:migrate $heroku restart
After that it worked perfectly.
Philipp Antar
7,216 Pointsgood job figuring it out, the production databse is seperate from the development and testing databases,
just a quick tip: To get a more helpful error message than "Were sorry..." run heroku logs
in the console (give it some seconds to load). This will print out detailed error messages of your app, making debugging much easier.