redmine安装webhook

ε祈祈猫儿з 提交于 2020-03-02 18:11:39

docker容器中:

gem source --add https://ruby.taobao.org/ --remove https://rubygems.org/

bundle install

要求安装11.2.2的rake

gem install rake -v 11.2.2
 

cd plugins/redmine_webhook

rake redmine:plugins:migrate RAILS_ENV=production

报错:

rake aborted!
Gem::LoadError: You have already activated rake 11.2.2, but your Gemfile requires rake 11.3.0. Prepending `bundle exec` to your command may solve this.
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:35:in `block in setup'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in `map'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in `setup'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler.rb:95:in `setup'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/setup.rb:9:in `<top (required)>'
/home/redmine/redmine/config/boot.rb:4:in `<top (required)>'
/home/redmine/redmine/config/application.rb:1:in `<top (required)>'
/home/redmine/redmine/Rakefile:5:in `<top (required)>'
LoadError: cannot load such file -- bundler/setup
/home/redmine/redmine/config/boot.rb:4:in `<top (required)>'
/home/redmine/redmine/config/application.rb:1:in `<top (required)>'
/home/redmine/redmine/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
 

使用方法:

bundle exec rake redmine:plugins:migrate RAILS_ENV=production

解决

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!