加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Heroku运行rake db:migrate错误rake命令未找

发布时间:2020-12-16 23:05:58 所属栏目:百科 来源:网络整理
导读:我正在运行run rake db:migration命令,终端告诉我rake不是命令 $heroku run rake db:migrate --app"glacial-lake-5597"Running `rake db:migrate --appglacial-lake-5597` attached to terminal... up,run.1930bash: rake: command not found$heroku run ra
我正在运行run rake db:migration命令,终端告诉我rake不是命令
$heroku run rake db:migrate --app"glacial-lake-5597"
Running `rake db:migrate --appglacial-lake-5597` attached to terminal... up,run.1930
bash: rake: command not found

$heroku run rake db:migrate
Running `rake db:migrate` attached to terminal... up,run.4588
bash: rake: command not found

我已经将已安装和已提交的更改捆绑到git.

我看了遍布StackOverflow,我找不到答案

有人能指出我正确的方向

解决方法

我有同样的问题,

原因是我第一次推送到Heroku时没有指定远程分支,Heroku应用程序以空白存储库开始 – 它们没有分支,也没有代码.因此,第一次部署时,需要指定远程分支.

git push heroku master

我最初没有这样做,这样做可以解决我的佣金问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读