Which directory should "bundle install" be run from when installing plugins?
Added by Gary Aitken over 3 years ago
The install procedure for plugins is generally something like:
cd $REDMINE_ROOT/plugins git clone <plugin-source> bundle install bundle exec rake redmine:plugins:migrate RAILS_ENV=production touch $REDMINE_ROOT/tmp/restart.txt
Depending on how they are written, it's often not clear which directory one should be in when these commands are executed.
If I execute "bundle install" from the redmine root when installing the additionals plugin, I see one set of gems;
executing it from the additionals plugin directory, I see a different set of gems, some from the top level set but with different (more recent) versions, and some new.
Should "bundle install" be run only from the new plugin sub-directory?
Should the rake task be run from the plugin directory or the top level directory?
Replies (1)
RE: Which directory should "bundle install" be run from when installing plugins? - Added by Marcel B over 3 years ago
Well, it sounds weird to me.
My experience is about 2 years deploying Redmine, writing plugins and hacking third part plugins. I always run bundle install and other scripts from Redmine root directory.