Closed learuhu closed 2 weeks ago
bash-4.2# rake redmine:send_work_wechat days=10 RAILS_ENV="production"
(in /opt/redmine-4.0.2-3/apps/redmine/htdocs)
rake aborted!
Gem::LoadError: You have already activated rake 13.2.1, but your Gemfile requires rake 12.3.2. Prepending bundle exec
to your command may solve this.
/opt/redmine-4.0.2-3/apps/redmine/htdocs/config/boot.rb:4:in <top (required)>' /opt/redmine-4.0.2-3/apps/redmine/htdocs/config/application.rb:1:in
<top (required)>'
/opt/redmine-4.0.2-3/apps/redmine/htdocs/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
执行会报这个错误
我看一下如何修复
大佬,这个问题解决了吗
大佬,这个问题解决了吗
还没看这个问题,预计周末的时候有时间处理这个问题。
bash-4.2# rake redmine:send_work_wechat days=10 RAILS_ENV="production" (in /opt/redmine-4.0.2-3/apps/redmine/htdocs) rake aborted! Gem::LoadError: You have already activated rake 13.2.1, but your Gemfile requires rake 12.3.2. Prepending
bundle exec
to your command may solve this. /opt/redmine-4.0.2-3/apps/redmine/htdocs/config/boot.rb:4:in<top (required)>' /opt/redmine-4.0.2-3/apps/redmine/htdocs/config/application.rb:1:in
<top (required)>' /opt/redmine-4.0.2-3/apps/redmine/htdocs/Rakefile:5:in `<top (required)>' (See full trace by running task with --trace)
我使用了 redmine:4.0.2 这个 docker 镜像测试, 没遇到这个报错, rake redmine:send_work_wechat days=10 RAILS_ENV="production" 也能正常通知, 这个报错应该是其它原因导致的。
因为我这边用的是 redmine5 ,没有在 redmine4上测试过。 你可以先试一下 redmine4 能不能用, 如果在 redmine4 上有问题,可以再反馈到这里,我再看看能不能兼容。