1
我有一个情况,我有两个遥控器。通过运行确认git remote -v
推到guro后推到heroku
现在,我已经做了git push
但现在,我想推向heroku。所以我用git push heroku master
。但是,它显示已经是最新的。
请注意,在此git push heroku之前,我已经部署过一次到heroku。 如何推送/部署我的更改?
我有一个情况,我有两个遥控器。通过运行确认git remote -v
推到guro后推到heroku
现在,我已经做了git push
但现在,我想推向heroku。所以我用git push heroku master
。但是,它显示已经是最新的。
请注意,在此git push heroku之前,我已经部署过一次到heroku。 如何推送/部署我的更改?
检查您的git branch -avv
输出。
主分支可能被链接(through its push url)到heroku
远程。
你是如何部署到heroku的?这很重要,因为heroku需要使用代码才能部署代码。这可能解释你所经历的原因。 – lemiorhan
我使用Windows CLI推送,然后运行一些命令在这里https://devcenter.heroku.com/articles/heroku-command-line 然后我从https://devcenter.heroku.com/articles/参考部署开始使用nodejs#deploy-the-app – kushalvm
您似乎已经推送到heroku来部署您的代码。因此,'git push heroku master'命令没有找到任何更新,因为它已经去了heroku。 – lemiorhan