$ git push heroku master - 没有错误消息,但更改不显示在Web应用程序上 [英] $git push heroku master - no error messages but changes not displaying on web app

查看:144
本文介绍了$ git push heroku master - 没有错误消息,但更改不显示在Web应用程序上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我相信我正在运行正确的代码。终端(我正在学习一个月的Rails课程):

$ $ p $ $ git add。
$ git commit -ammessage
$ git push
$ git push heroku master

对heroku的推送贯穿始终,但我没有收到错误消息,但是,当我尝试访问我的heroku页面时

  $ heroku open 

这些更改不会显示在实时网络应用程序中。



在本地主机上运行rails服务器时显示所有更改。此外,heroku网站上的活动日志显示我的推送已经完成,并且它运行的是我最近推送给github的相同版本。



有什么想法?



Best,
Brian

解决方案

回应: git push heroku master说一切都是最新的,但该应用程序不是最新的



即使这是一个如果其他人遇到这个问题,我想更新一下我的工作(新手):

按照这里的指示(来自Hudson),最后是什么在检查出主分支后,我做了一个抠门的技巧。也许git push heroku master只推出了master的本地分支?



当然,假设所有必需的更改都已正确合并到您的主控中。自从项目建立以来,我并没有从当地的主人那里撤离,因为所有合并(从开发到主)都在GitHub上进行处理,并且我一直致力于新的分支,后来又与开发合并。

因此,要重申哈德逊上述步骤:

git checkout master code>



git pull



(在这里,我更新了README以改变提交,就像Heroku deploy [date,time]一样)

git add。 $ b $ p $ g $ g -a $ x $ x






git push heroku master



heroku run rake db:migrate code>



heroku重启



祝你好运!


After installing the devise gem to create users on my web app, my changes are not appearing on the live app.

I believe I am running the correct code in terminal (I am following the one-month-rails course):

$ git add .
$ git commit -am "message"
$ git push  
$ git push heroku master

The push to heroku runs through and I don't receive an error message, however, when I try to access my heroku page

$ heroku open

The changes are not displayed on the live web-app.

All the changes are displayed when running the rails server on the localhost. Furthermore, the activity log on the heroku website shows that my push went through and that its running the same version as my most recent push to github.

Any thoughts?

Best, Brian

解决方案

** Also posted this response here: git push heroku master says "Everything up-to-date", but the app is not current

Even though this is an old issue, I wanted to update with what worked for me (a newbie) should anyone else run into this:

After following the instructions here (from Hudson), what finally did the trick for me was doing a "git pull" after checking out the "master" branch. Perhaps "git push heroku master" pushes out only the local branch of master?

Of course, this assumes all required changes have been correctly merged into your master. I hadn't pulled from master on my local since the project set up because all merges (from development to master) were handled on GitHub and I had been working on new branches that were later merged with development.

So, to restate steps above from Hudson:

git checkout master

git pull

(here, I updated README to have a change to commit, like "Heroku deploy [date, time]"

git add .

git commit -am "xxxyyzzz"

git push heroku master

heroku run rake db:migrate

heroku restart

Good luck!

这篇关于$ git push heroku master - 没有错误消息,但更改不显示在Web应用程序上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆