简体   繁体   中英

How can I pull from a Heroku repository?

This is really strange, but in my Rails app, a hidden element is displaying perfectly in a certain viewport on Heroku, and yet locally the element is staying hidden.

1) What could be causing this discrepancy between Heroku and the local server?
2) Can I pull from the repo and test locally?

1) Maybe because it runs in production on heroku? 2) Your local repo should be the same as you pushed it from your local repository to heroku, but you can test the code on heroku by checking out the remote branch.

git checkout heroku/master

您可以使用git log比较Heroku与本地分支上的内容。

git log master..heroku/master

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