heroku:运行rake db:migrate错误

Running `rake db:migrate` attached to terminal... failed ! Multiple apps in folder and no app specified. ! Specify app with --app APP. 

当我尝试运行rake db时,我的终端出现上述错误:迁移有人可以帮忙吗?

由于错误明确指出,您需要指定要为其运行命令的应用程序。 如果您在项目目录中,则不需要指定应用程序。 如果您在项目文件夹之外运行命令,如下所示:

 heroku run rake db:migrate --app  

我已经遇到了这个问题,因为它与heroku无关。 如果你真的想看,请打开你的.git / config文件

例如,我正在进行分期,发现我有第二个遥控器。 从我的.git / config文件中删除它修复了一切。

 [remote "staging"] url = git@heroku.com:site-stage.git fetch = +refs/heads/*:refs/remotes/staging/*