heroku运行rake db:migrate – / bin / sh:1:rake:not found

当我试图运行heroku run rake db:migrate从Heroku代码 heroku run rake db:migrate = H10 desc =“App崩溃” – 无法弄清楚为什么它崩溃我得/bin/sh: 1: rake: not found

 - git push heroku master # if not done - heroku run rake db:migrate - heroku restart 

有什么建议?

命令日志:

 2017-07-08T23:10:22.242114+00:00 app[api]: Starting process with command `rake db:migrate` by user myname@gmail.com 2017-07-08T23:10:36.592694+00:00 heroku[run.1110]: Awaiting client 2017-07-08T23:10:36.631698+00:00 heroku[run.1110]: Starting process with command `rake db:migrate` 2017-07-08T23:10:36.728622+00:00 heroku[run.1110]: State changed from starting to up 2017-07-08T23:10:41.467500+00:00 heroku[run.1110]: State changed from up to complete 2017-07-08T23:10:41.454044+00:00 heroku[run.1110]: Process exited with status 127