简体   繁体   English

Heroku一切都是最新的

[英]Heroku Everything Up-To-Date

So i've googled this error messages and went through the various stack overflow posts with regards to this. 因此,我已经搜索了此错误消息,并就此问题浏览了各种堆栈溢出帖子。 My issue came yesterday when the Dyn DNS were under a DDoS attack. 我的问题是昨天Dyn DNS受到DDoS攻击时出现的。 Anyway the initial problem was that when i tried doing git push heroku master it constantly returned everything up-to-date 无论如何,最初的问题是,当我尝试执行git push heroku master它不断返回everything up-to-date

I tried everything i found in the various relevant stack overflow posts. 我尝试了在各种相关堆栈溢出帖子中找到的所有内容。 From doing git remote rm heroku then adding it back, to checking out a new branch then doing git push heroku <branch name>:master but nothing worked. 从执行git remote rm heroku重新添加它,到签出新分支,然后执行git push heroku <branch name>:master但没有任何效果。

After trying various other things i gave up and decided to simply delete my heroku app and try pushing all over. 在尝试了其他各种方法之后,我放弃了,决定只删除我的heroku应用程序,然后尝试全部推送。

Now the weird thing (which may just be my lack of understanding of how all these works) would be even after deleting my app and not creating a new one, when i run the command git push heroku master it still returns everything up-to-date . 现在,奇怪的事情(可能只是我对所有这些工作原理的理解不足)甚至在删除我的应用程序而不创建一个新应用程序之后,当我运行命令git push heroku master它仍然会返回everything up-to-date Why is that so when there is no longer any app there? 为什么当不再有任何应用程序时会这样呢?

Additionally i have also tried heroku create before trying to push it and it returns everything up-to-date as well. 另外,在尝试推送它之前,我还尝试了heroku create ,它也会返回everything up-to-date I read that everything is up and running on heroku's side so i'm not quite sure what is the problem. 我读到一切都在heroku的一边运行,所以我不太确定是什么问题。

I can't seem to find any updated documentation on this issue as well so i'm hoping that someone can point me in the right direction or steps to take. 我似乎也找不到关于此问题的任何更新文档,因此我希望有人可以指出正确的方向或要采取的步骤。

You can try using force (worked for me when I had this problem in the past): 您可以尝试使用武力(过去遇到此问题时为我工作):

git push -f heroku

This will make Heroku to receive the files and build again, no matter if it thinks everything is up to date. 无论它是否认为一切都是最新的,这将使Heroku再次接收文件并进行构建。 (They even recommend it) (他们甚至推荐

Also, as you've created a new application, make sure you've set the remote to point to this new app: 另外,在创建新应用程序时,请确保已将遥控器设置为指向该新应用程序:

heroku git:remote -a app_name heroku git:远程-a app_name

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM