I’m working on a project needing active_admin gem. But I needed to modify activeadmin :
- I cloned active_admin repo inside a directory I created :
/vendor/gems/ - Removed .git inside :
/vendor/gems/active_admin/ - Added the folder to my own git repository
-
I modified Gemfile to point to the folder :
gem "active_admin", :path => "vendor/gems/active_admin"
It works great on local development machine: I do bundle install and it works fine :
Using activeadmin (0.5.0) from source at ./vendor/gems/active_admin
But when I do a cap deploy, bundle is complaining :
** [out] Could not find activeadmin-0.5.0 in any of the sources
Is there any magic solution ? Should I include activeadmin in another directory like lib and remove it from gemfile ?
Thanks for helping me !
Pof
Try specifying a git path instead of a local path.
I had the same problem deploying to heroku and I got it working specifying a git path instead of a local path. Check: How to get working a local gem on heroku?