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

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

问题描述

在安装了devise gem以在我的Web应用程序上创建用户之后,我的更改未出现在实时应用程序中.

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

我相信我正在终端中运行正确的代码(我正在参加为期一个月的Rails课程):

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

对heroku的推送一直运行,但是当我尝试访问我的heroku页面时,我没有收到错误消息

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.

在本地主机上运行Rails服务器时,将显示所有更改.此外,heroku网站上的活动日志显示我的推送通过了,并且运行的版本与我最近对github的推送相同.

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.

有什么想法吗?

最好, 布莱恩

推荐答案

**也在此发布了此回复:

** 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:

按照此处的指示(来自Hudson),对我来说,最后的窍门是在签出"master"分支后进行"git pull".也许"git push heroku master"仅推出master的本地分支?

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?

当然,这假定所有必需的更改已正确合并到您的母版中.自从项目成立以来,我就没有从本地的管理员那里撤出,因为所有合并(从开发到管理员)都是在GitHub上处理的,而我一直在研究新的分支,这些分支后来与开发合并.

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

(在这里,我更新了自述文件以进行更改,例如"Heroku部署[日期,时间]"

(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

祝你好运!

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

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