Plugins

Plugin list

A full list of available Redmine plugins can be found at the Plugin Directory.

More plugins (some in very early development), which are not listed at the Plugin Directory but are publicly available on GitHub, can be found using a search like this.

Installing a plugin

1. Copy your plugin directory into #{RAILS_ROOT}/plugins (Redmine 2.x) or #{RAILS_ROOT}/vendor/plugins (Redmine 1.x). If you are downloading the plugin directly from GitHub, you can do so by changing into your plugin directory and issuing a command like git clone git://github.com/user_name/name_of_the_plugin.git.

2. If the plugin requires a migration, run the following command in #{RAILS_ROOT} to upgrade your database (make a db backup before).

2.1. For Redmine 1.x:

rake db:migrate_plugins RAILS_ENV=production

2.2. For Redmine 2.x:

rake redmine:plugins:migrate RAILS_ENV=production

3. Restart Redmine

You should now be able to see the plugin list in Administration -> Plugins and configure the newly installed plugin (if the plugin requires to be configured).


Uninstalling a plugin

1. If the plugin required a migration, run the following command to downgrade your database (make a db backup before):

1.1. For Redmine 1.x:

rake db:migrate:plugin NAME=plugin_name VERSION=0 RAILS_ENV=production

1.2. For Redmine 2.x:

rake redmine:plugins:migrate NAME=plugin_name VERSION=0 RAILS_ENV=production

1.3 For Redmine 3.x
Redmine提供了比较丰富的插件,介绍几个插件的安装。RM.2.3是目前最新版本,使用的是bitnami redmine一键安装
下载zip包,解压文件夹名为:redmine_backlogs
放到
redmine-3.0.3-0\apps\redmine\htdocs\plugins\文件夹下
cmd到redmine-3.0.3-0目录,运行use_redmine命令 
弹出新的cmd,跳转到redmine-3.0.3-0\apps\redmine\htdocs
运行下面命令:

D:\Bitnami\redmine-3.0.3-0\apps\redmine\htdocs>bundle exec rake redmine:plugins:
migrate RAILS_ENV=production

D:\Bitnami\redmine-3.0.3-0\apps\redmine\htdocs>bundle exec rake redmine:plugins RAILS_ENV=production --trace
转到管理-插件(redmine backlogs )-配置,进行配置
重启服务即可

1. https://github.com/pharmazone/redmine_charts2 下载压缩包

2.解压,放到plugins下面,改名redmine_charts2

3.https://github.com/pullmonkey/open_flash_chart 下载压缩包

4.解压,放到plugins目录下面,改名为open_flash_chart

5.将open_flash_chart目录下的asserts目录拷贝到public\plugin_assets目录下,改名为open_flash_chart

6.cd到htdocs目录下,执行 rake redmine:plugins RAILS_ENV=production 命令

7.重启redmine,管理员登录后配置,即可使用

安装gem in windows:

1. 下载gem.zip;

2. 解压;

3. cd 解压目录;

4. C:\Users\win7\Desktop\climate_control-0.0.3>gem build climate_control.gemspec

5. 生成:climate_control-0.0.3.gem文件;

6. C:\Users\win7\Desktop\climate_control-0.0.3>gem install climate_control-0.0.3.gem

安装完成。

Linux:

安装插件:

cd redmine
./use_redmine
cd /apps\redmine\htdocs\plugins
git clone https://github.com/scrum2b/scrum2b.git
bundle install
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
service nginx restart

重启\Redmine服务:

To start/stop/restart application on Linux you can use the included
ctlscript.sh utility, as shown below:
./ctlscript.sh (start|stop|restart)
./ctlscript.sh (start|stop|restart) mysql
./ctlscript.sh (start|stop|restart) apache
./ctlscript.sh (start|stop|restart) redmine
./ctlscript.sh (start|stop|restart) subversion
1、进入plugins目录:cd plugins
git clone git://github.com/backlogs/redmine_backlogs.git   (git已经在前面安装railinstaller的过程中安装过了)
这会创建一个redmine_backlogs的目录
2、cd redmine_backlogs执行git tag命令查看各种可用的版本
3、选择最新的一个执行 git checkout v0.9.26
4、cd redmine根目录配置backlogs,执行命令: bundle exec rake redmine:backlogs:install 
 

2. Remove your plugin from the plugins folder: #{RAILS_ROOT}/plugins (Redmine 2.x) or #{RAILS_ROOT}/vendor/plugins (Redmine 1.x)..

3. Restart Redmine

Writing plugins

There is a step-by-step tutorial about writing a plugin. Some more (detailed) information is collected and stored in the "plugin internals" page.
More (general) developer information can be found in the Redmine Developer Guide.

Migrating Plugins

There are changes in Plugins API or new Rails requirements which need to be considered if you want to use plugin from prior version of redmine.
In any case it's proposed to update and migrate redmine core system first without plugins and then if stable try to drop in one by one, to know where problems come from if any.

Consideration towards plugins which overwrite views completly because of bad coding style or there is no "hook" available shall be made in any case. Maybe you can collect and write down plugin references here which are of this type.

Let's start with..

Redmine 1.3 > 1.4

  • routes.rb which defines url to controller (parameter, action) mapping must be created in <plugin>/config/routes.rb
  • ARCondition is gone with no replacement
  • TabularFormBuilder is now Redmine::Views::LabelledFormBuilder
  • defining your own context menus now requires helper :context_menus in the respective controller
  • of course, returning is deprecated in favor of tap
  • if you're doing anything with repos check it twice, because there can be multiple repos now per project
  • Project#visible_by is deprecated and replaced by Project#visible_condition

Redmine 1.4 > 2.x

Writing Redmine 2.x plugins

Redmine插件及使用的更多相关文章

  1. Redmine插件的安装与卸载,知识库插件安装。

    本文介绍linux版本的Redmine插件安装,通常Redmine安装在Linux系统,/var/www/redmine/路径. 安装: 复制插件到 2.X版本 #{RAILS_ROOT}/plugi ...

  2. Redmine 插件安装

    将对应的插件都复制进redmine的plugins 安装对应所需要的GEMS bundle install --without development test rmagick 执行插件合并 bund ...

  3. Bitnami Redmine插件记录

    1.bitnami安装时自带了开发环境,如ruby.rails.devkit. 为了版本兼容,应使用bitnami的命令行. 2.通过use_redmine启动命令行:运行Bitnami\redmin ...

  4. Redmine插件

    1.redmine_customize_core_fields可以对自带字段进行设置,看起来很不错,2016年6月23日上线,安装失败, 看来测试不完整.redmine_issue_field_vis ...

  5. 掌握Redmine

    一个带有建议.技巧和最佳实践的全面指导和易懂易学的结构. 掌握Redmine 版权©2013 Packt出版 前言(略) 1.熟悉Redmin 我们尝试去做一个新的网站应用程序的时候,回去询问一些了解 ...

  6. Redmine性能优化方案

    近来公司redmine服务器表现很糟糕,在16核,64GRAM的机器上,压测结果竟然只有每秒5~7个请求,部分页面一个都出不来. 以下是我对Redmine性能优化方案: redmine服务器性能问题排 ...

  7. jenkins 集成redmine

    安装 可以使用jenkins的插件管理页面进行安装,也可以使用其id(redmine)在镜像中进行安装并重启镜像即可. 插件安装确认 重新启动后确认此插件已经安装完毕  设定内容 系统管理 -> ...

  8. centos+nginx+redmine+gitosis安装指南

    说明 这篇文章我现在的主要目的是记录自己安装redmine和gitosis的过程,可能写的有些糙,请各位读者见谅.我会在后面的时间里逐渐完善细节.但我想,这已经是网上迄今为止国内最详细的nginx+r ...

  9. ruby on rails on windows

    这次想系统学会rails,最终目标是将redmine改造成顺手的工具,主要的手段就是开发redmine插件.虽然网上都推荐使用类Unix系统,可手头只有win7系统,就安装了. 难免会遇到这样那样的问 ...

随机推荐

  1. 扩展ToolBarManager、ListView和Grid控件以实现气球式的ToolTip

    原文:扩展ToolBarManager.ListView和Grid控件以实现气球式的ToolTip infragistics是全球领先的UI工具和用户体验的专家,Infragistics开发了一系列的 ...

  2. NFTS数据流

    NFTS数据流 NTFS交换数据流(alternate data streams,简称ADS)是NTFS磁盘格式的一个特性,在NTFS文件系统下,每一个文件都能够存在多个数据流,就是说除了主文件流之外 ...

  3. Inno Setup技巧[界面]欢迎页面上添加文字

    原文:Inno Setup技巧[界面]欢迎页面上添加文字 本文介绍在"欢迎页面添加文字"的两种方法. 界面预览: Setup技巧[界面]欢迎页面上添加文字" title= ...

  4. sql 将datetime类型转化为指定格式的字符串

    ), ) -- 输出: 05 16 2006 10:57AM ), ) -- 输出: 05/16/06 ), ) -- 输出: 06.05.16 ), ) -- 输出: 16/05/06 ), ) - ...

  5. Solr 教程

    1.Solr安装 下载jdk-8u111-windows-i586_8.0.1110.14 下载solr-6.3.0.zip 2.配置JAVA_HOME 在"系统变量"中,设置3项 ...

  6. Mysql高级之主从复制

    原文:Mysql高级之主从复制 主从复制不就是多台服务器嘛!,一个改变另一个也改变啦,内容其实都一样! 原理: 对数据库进行操作会生成一个文件,binlog(二进制文件),从服务器配置relaylog ...

  7. Android项目---语言适配

    android多国语言文件夹 android多国语言文件夹文件汇总如下:(有些语言的书写顺序可能跟中文是相反的) 中文(中国):values-zh-rCN 中文(台湾):values-zh-rTW 中 ...

  8. vs2010下载链接中国简体(中国含msdn)

    昨天一个朋友说vs2010中国版可下载,我开始不相信.只是周末.所以,我下载一试 果然,安装了中国版,原本msdn订户才能够下载,感谢朋友们上传. 文件名 cn_visual_studio_2010_ ...

  9. zxing二维码扫描的流程简析(Android版)

    目前市面上二维码的扫描似乎用开源google的zxing比较多,接下去以2.2版本做一个简析吧,勿喷... 下载下来后定位两个文件夹,core和android,core是一些核心的库,android是 ...

  10. vim实用笔记

    vim实用笔记   真是不知不觉过了一年,前段时间忙着考试什么的,没再写笔记写博客,考完又懒懒地玩了几天.这几天其实都在读别人的博客,感受一下大神的工作和生活感悟,感受一下过来人的经历和经验,对自己总 ...