[英]heroku : run rake db:migrate error
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 <your-app-name>
我已經遇到了這個問題,因為它與heroku無關。 如果你真的想看,請打開.git / config文件
例如,我正在進行分期,發現我有第二個遙控器。 從我的.git / config文件中刪除它修復了一切。
[remote "staging"]
url = git@heroku.com:site-stage.git
fetch = +refs/heads/*:refs/remotes/staging/*
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.