简体   繁体   中英

Ruby on Rails App crashing on heroku

I have a Rails app working on my local computer, but when I push it to heroku, it crashes. The error log gives an error H10. This is the log. http://pastebin.com/6UqVW0BL Can someone please help.

http://devcenter.heroku.com/articles/error-codes says an H10 error could be from "a crashed web process or a boot timeout". Is there anything that could be causing the app to take too long to boot up, ie doing a request across the net?

In line 14 of that stack trace it says:

n depend_on': No such file to load -- mysql (LoadError)

So it looks like somewhere it's trying to load mysql. Obviously, Heroku doesn't support mysql, only pg. And you are only loading the 'pg' gem in production, so somewhere in your project you are probably requiring mysql.

我认为您忘记在heroku上运行db:migrate ...

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