neuromancer
neuromancer

Reputation: 55479

How to get this simple rails project to work on Heroku?

I followed this tutorial to make a simple website where you can enter blog entries. I was able to get it working with a postgresql database on my computer.

Then I pushed it to heroku. It was accepted and everything seemed fine.

When I tried to go to the page in my browser though, it didn't work right. You can see it here.

I even tried setting up a shared postgresql database on Heroku. Am I supposed to make some changes to database.yml to get it to work?

One thing I noticed though is that what I added in the shared postgresql database, the error messages seem to indicate that it does find a database, but doesn't find the table. Am I right? I tried to manually recreate the table using the heroku console, but wasn't able to.

What's going on here? How can I get this to work?

Upvotes: 0

Views: 302

Answers (1)

Mike Vormwald
Mike Vormwald

Reputation: 2310

Have you tried heroku run rake db:migrate yet?

If that doesn't fix it what does heroku logs --tail tell you?

Upvotes: 2

Related Questions