如何确保Heroku上托管的Ruby on Rails应用程序使用我的GitHub仓库中的最新代码进行更新? [英] How to ensure my Ruby on Rails app hosted on Heroku is updated with latest code in my GitHub repo?

查看:122
本文介绍了如何确保Heroku上托管的Ruby on Rails应用程序使用我的GitHub仓库中的最新代码进行更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是RoR,GitHub和Heroku的新手,所以我仍然试图解决这个问题。



我对一些文件进行了更改我的私人GitHub回购,并保存更改(提交)。我期待看到这些更改立即反映在应用程序的URL上,但我看不到变化。有没有时间延迟,或者我做错了什么?



我从GitHub本身编辑了源代码。我还使用了Aptana。

  $ git push heroku master 


I'm a newbie to RoR, GitHub and Heroku, so I'm still trying to figure this out.

I've made changes to some file in my private GitHub repo, and saved changes ("commit"). I was expecting to see those changes reflect immediately on the app's URL, but I see no change. Is there a time delay, or am I doing things wrong?

I edited the sourcecode from within GitHub itself. I also used Aptana as well.

解决方案

you have to push your changes to your heroku repo manually like this:

$ git push heroku master

这篇关于如何确保Heroku上托管的Ruby on Rails应用程序使用我的GitHub仓库中的最新代码进行更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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