redmine插件安装爬坑

1. 更改默认gem源,解决bundle install安装缓慢或失败的问题

D:\Bitnami\redmine-4.1.1-1>gem source -l
*** CURRENT SOURCES ***

https://rubygems.org/

D:\Bitnami\redmine-4.1.1-1>gem sources --remove https://rubygems.org/
https://rubygems.org/ removed from sources

D:\Bitnami\redmine-4.1.1-1>gem source -a https://gems.ruby-china.com
https://gems.ruby-china.com added to sources

D:\Bitnami\redmine-4.1.1-1>gem source -l
*** CURRENT SOURCES ***

https://gems.ruby-china.com
D:\Bitnami\redmine-4.1.1-1\apps\redmine\htdocs>gem source -l
*** CURRENT SOURCES ***

https://gems.ruby-china.com

D:\Bitnami\redmine-4.1.1-1\apps\redmine\htdocs>bundle config mirror.https://rubygems.org https://gems.ruby-china.com

D:\Bitnami\redmine-4.1.1-1\apps\redmine\htdocs>bundle install
Fetching gem metadata from https://gems.ruby-china.com/............
Fetching gem metadata from https://gems.ruby-china.com/..

2. 文件名错误报错信息

D:\Bitnami\redmine-4.1.1-1\apps\redmine\htdocs>bundle exec rake redmine:plugins:migrate RAILS_ENV=production
rake aborted!
Redmine::PluginNotFound: Plugin not found. The directory for plugin view_customize should be D:/Bitnami/redmine-4.1.1-1/apps/redmine/htdocs/plugins/view_customize.
D:/Bitnami/redmine-4.1.1-1/apps/redmine/htdocs/lib/redmine/plugin.rb:102:in `register'
D:/Bitnami/redmine-4.1.1-1/apps/redmine/htdocs/plugins/redmine-view-customize/init.rb:1:in `<top (required)>'
D:/Bitnami/redmine-4.1.1-1/apps/redmine/htdocs/lib/redmine/plugin.rb:181:in `block in load'

这里给出了这个插件应该在的文件夹,即…/plugins/view_customize,把该插件文件名更改为view_customize即可。

D:\Bitnami\redmine-4.1.1-1\apps\redmine\htdocs>bundle exec rake redmine:plugins:migrate RAILS_ENV=production
== 1 CreateViewCustomizes: migrating ==========================================
-- create_table(:view_customizes, {:options=>"ENGINE=InnoDB", :id=>:integer})
   -> 0.2722s
== 1 CreateViewCustomizes: migrated (0.2738s) =================================

== 2 AddColumnViewCustomizes: migrating =======================================
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值