简体   繁体   中英

How to ensure my Ruby on Rails app hosted on Heroku is updated with latest code in my GitHub repo?

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 heroku

git push heroku master

take a look at Getting Started with Heroku

您必须像这样将更改手动推送到heroku存储库中:

$ git push heroku master

Total Git / Heroku n00b here.

Just wanted to chime in to say that before running the push command, I had to first run a pull request..

git pull

Multiple commits had been made, but just running the push command wasn't showing changes on the Heroku app. I think the reason being was that the updated files were not committed by me, but by someone else remotely. However I'm the one who set up and am managing the Heroku app. So, I had to pull the committed files onto my local setup before I could push them to Heroku.

Thanks go to willglynn for the clue-in via his answer on another thread:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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