I am working on a rails app which uses a gem also in development. In my rails app, I have
gem 'somegem', :path => '~/r/somegem'
However, when I make changes to the code in somegem it does not update in my rails app. I'm not sure which bundler commands I should be using after making changes, or if I need to at all. Restarting the rails app doesn't help either.
Any suggestions on developing rails app with bundler and the :path option?
如捆绑程序网页所示,使用:path时,请不要忘记在代码顶部添加所需的需求。
require 'bundler/setup'
Run this command:
bundle install
This command evaluates your Gemfile and installs all missing dependencies. It will re-package your gem from that location and make it available via bundle exec
next time you use it.
Also, be sure to start the server with:
bundle exec rails s
to be sure you're using your bundle's gems.
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.