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 Build a Simple Ruby on Rails Application Deploying Deploying Treebook to Heroku

Some routes does not works

Hi, i have upload my app, and did everything. But only login,logout,register and feed works, on the others i get a error.

Someone know why it could be?, on the logs i can't see anything helpful, also on 'heroku run rake routes' every routes are correct.(on local works).

3 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

You should check the logs and see what the exact errors are. Visit one of the pages that gives you an error, then in your terminal/console, while in your app's folder, run the heroku logs command. This should download and display the last 100 lines of logs from your app's heroku. Go through them and look for clues.

Im getting this: 2015-05-02T02:20:31.361221+00:00 heroku[router]: at=info method=GET path="/estados/new" host=simple2.herokuapp.com request_id=d6ac1291-abcd-4eeb-8913-64a9e06b676c fwd="190.234.106.217" dyno=web.1 connect=2ms service=37ms status=500 bytes=1754

I found it in w3: 10.5.1 500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

So i think is problem of heroku?

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Does your app work properly on your machine? Did you follow the heroku tutorial? For Rails 4 it's https://devcenter.heroku.com/articles/getting-started-with-rails4

The videos are very old.

I have solve it, i don't really know how. But i was trying to reset de db with 'pg:reset' but was the same, after i did again and migrated it. Well it works but i m going to configure again on a different app.