将自定义 gem 更改推送到 Heroku
我在 Heroku 上部署的 Web 应用程序中的某些模型关联遇到问题。
在我的本地计算机上,我对 apn_on_rails gem 进行了一些自定义更改,该更改安装在我的 ~/.bundler/ruby/1.8/ 目录中,但我有一种感觉,这里的更改并未被执行推送到 Heroku,或者 Heroku 只是获取最初从适当的存储库创建的 gem,并在我将应用程序部署到站点时安装非自定义副本。
关于如何包含我的 apn_on_rails 的自定义副本而不是我最初安装的副本,有什么想法吗?预先感谢您的宝贵时间。
I'm having problems with certain model associations in my web-app deployed on Heroku.
On my local machine I made some custom changes to the apn_on_rails gem, which is installed in my ~/.bundler/ruby/1.8/ directory, but I have a feeling that the changes here aren't being pushed to Heroku, or that Heroku simply fetches the gems as they were initially created from the appropriate repository and installs a non-customized copy when I deploy my app to the site.
Any ideas on how to include my customized copy of apn_on_rails, and not the one I initially installed? Thanks in advance for your time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许http://cyber-hobo.blogspot。 com/2010/09/sneak-custom-gem-into-heroku.html 可以帮助你
Maybe http://cyber-hobo.blogspot.com/2010/09/sneak-custom-gem-into-heroku.html could help you
感谢您的回复,fuzzyalej。我的怀疑是正确的,所以我所做的就是分叉 gem,添加我的个人更改,将我的自定义 gem 上传到我的个人 github 帐户,然后将我的 Gemfile 指向该帐户。这可能不是最好的解决方案,但目前有效。 =P
Thanks for your response, fuzzyalej. My suspicions were correct, so what I did was fork the gem, added my personal changes, uploaded my customized gem to my personal github account, and then pointed my Gemfile to that account. It might not be the best solution, but it works for now. =P