简体   繁体   中英

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?

Have you tried heroku run rake db:migrate yet?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM