Ruby on rails heroku:运行rake db:迁移错误
当我尝试运行rake db:migrate时,在我的终端中出现了上述错误。有人能提供帮助吗?由于错误明确指出,您需要指定要为哪个应用程序运行该命令。如果您在项目目录中,则不需要指定应用程序。如果您在Project文件夹之外,请按如下方式运行命令:Ruby on rails heroku:运行rake db:迁移错误,ruby-on-rails,ruby,heroku,migrate,Ruby On Rails,Ruby,Heroku,Migrate,当我尝试运行rake db:migrate时,在我的终端中出现了上述错误。有人能提供帮助吗?由于错误明确指出,您需要指定要为哪个应用程序运行该命令。如果您在项目目录中,则不需要指定应用程序。如果您在Project文件夹之外,请按如下方式运行命令: Running `rake db:migrate` attached to terminal... failed ! Multiple apps in folder and no app specified. ! Specify app
Running `rake db:migrate` attached to terminal... failed
! Multiple apps in folder and no app specified.
! Specify app with --app APP.
heroku运行rake db:migrate--app
我遇到了这个与heroku无关的问题。如果确实想查看,请打开.git/config文件 例如,我在登台时发现我有第二个遥控器。从我的.git/config文件中删除它修复了所有问题
heroku run rake db:migrate --app <your-app-name>
是的,用户不在项目目录中,或者当前应用程序有多个应用程序,如暂存、生产等。它总是很简单。非常感谢。
[remote "staging"]
url = git@heroku.com:site-stage.git
fetch = +refs/heads/*:refs/remotes/staging/*