Redmine插件及使用
2015-06-05 09:37
585 查看
Plugins
Pluginlist
AfulllistofavailableRedminepluginscanbefoundattheMoreplugins(someinveryearlydevelopment),whicharenotlistedatthe
Installingaplugin
1.Copyyourplugindirectoryinto#{RAILS_ROOT}/plugins(Redmine2.x)or
#{RAILS_ROOT}/vendor/plugins(Redmine1.x).IfyouaredownloadingtheplugindirectlyfromGitHub,youcandosobychangingintoyourplugindirectoryandissuingacommandlike
gitclonegit://github.com/user_name/name_of_the_plugin.git.
2.Ifthepluginrequiresamigration,runthefollowingcommandin
#{RAILS_ROOT}toupgradeyourdatabase(makeadbbackupbefore).
2.1.ForRedmine1.x:
rakedb:migrate_pluginsRAILS_ENV=production
2.2.ForRedmine2.x:
rakeredmine:plugins:migrateRAILS_ENV=production
3.RestartRedmine
YoushouldnowbeabletoseethepluginlistinAdministration->Pluginsandconfigurethenewlyinstalledplugin(ifthepluginrequirestobeconfigured).
Uninstallingaplugin
1.Ifthepluginrequiredamigration,runthefollowingcommandtodowngradeyourdatabase(makeadbbackupbefore):1.1.ForRedmine1.x:
rakedb:migrate:pluginNAME=plugin_nameVERSION=0RAILS_ENV=production
1.2.ForRedmine2.x:
rakeredmine:plugins:migrateNAME=plugin_nameVERSION=0RAILS_ENV=production 1.3ForRedmine3.x
Redmine提供了比较丰富的插件,介绍几个插件的安装。RM.2.3是目前最新版本,使用的是bitnamiredmine一键安装 下载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>bundleexecrakeredmine:plugins:
migrateRAILS_ENV=production
或
D:\Bitnami\redmine-3.0.3-0\apps\redmine\htdocs>bundleexecrakeredmine:pluginsRAILS_ENV=production--trace
转到管理-插件(redminebacklogs)-配置,进行配置 重启服务即可
1.
2.解压,放到plugins下面,改名redmine_charts2
3.
4.解压,放到plugins目录下面,改名为
5.将open_flash_chart目录下的asserts目录拷贝到public\plugin_assets目录下,改名为open_flash_chart
6.cd到htdocs目录下,执行rakeredmine:pluginsRAILS_ENV=production命令
7.重启redmine,管理员登录后配置,即可使用
安装geminwindows:
1.下载gem.zip;
2.解压;
3.cd解压目录;
4.C:\Users\win7\Desktop\climate_control-0.0.3>gembuildclimate_control.gemspec
5.生成:climate_control-0.0.3.gem文件;
6.C:\Users\win7\Desktop\climate_control-0.0.3>geminstallclimate_control-0.0.3.gem
安装完成。
Linux:
安装插件:
cdredmine ./use_redmine cd/apps\redmine\htdocs\plugins gitclonehttps://github.com/scrum2b/scrum2b.gitbundleinstall bundleexecrakeredmine:plugins:migrateRAILS_ENV=production servicenginxrestart
重启\Redmine服务:
Tostart/stop/restartapplicationonLinuxyoucanusetheincluded ctlscript.shutility,asshownbelow: ./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目录:cdplugins
gitclonegit://github.com/backlogs/redmine_backlogs.git(git已经在前面安装railinstaller的过程中安装过了)
这会创建一个redmine_backlogs的目录
2、cdredmine_backlogs执行gittag命令查看各种可用的版本
3、选择最新的一个执行gitcheckoutv0.9.26
4、cdredmine根目录配置backlogs,执行命令:bundleexecrakeredmine:backlogs:install
2.Removeyourpluginfromthepluginsfolder:
#{RAILS_ROOT}/plugins(Redmine2.x)or
#{RAILS_ROOT}/vendor/plugins(Redmine1.x)..
3.RestartRedmine
Writingplugins
Thereisastep-by-stepMore(general)developerinformationcanbefoundinthe
MigratingPlugins
TherearechangesinPluginsAPIornewRailsrequirementswhichneedtobeconsideredifyouwanttousepluginfrompriorversionofredmine.Inanycaseit'sproposedtoupdateandmigrateredminecoresystemfirstwithoutpluginsandthenifstabletrytodropinonebyone,toknowwhereproblemscomefromifany.
Considerationtowardspluginswhichoverwriteviewscompletlybecauseofbadcodingstyleorthereisno"hook"availableshallbemadeinanycase.Maybeyoucancollectandwritedownpluginreferencesherewhichareofthistype.
Let'sstartwith..
Redmine1.3>1.4
routes.rbwhichdefinesurltocontroller(parameter,action)mappingmustbecreatedin<plugin>/config/routes.rbARConditionisgonewithnoreplacement
TabularFormBuilderisnow
Redmine::Views::LabelledFormBuilder
definingyourowncontextmenusnowrequires
helper:context_menusintherespectivecontroller
ofcourse,
returningisdeprecatedinfavorof
tap
ifyou'redoinganythingwithreposcheckittwice,becausetherecanbemultiplereposnowperproject
Project#visible_byisdeprecatedandreplacedby
Project#visible_condition
Redmine1.4>2.x
WritingRedmine2.xplugins
相关文章推荐
- 如何让你的wamp消除8小时的时间差?
- 如何解决卸载McAfee时出现“处于托管模式时无法删除”问题
- 编辑框控件的两种成员变量(CEdit控件类型与CString 值类型之间的关联问题)
- linux点滴0
- python写文件出错
- Android Studio如何import module(针对非gradle)
- php实现用已经过去多长时间的方式显示时间
- java下拉框,滚动条
- C#测试代码与用例
- Java 4种引用 strongReference, softReference, weakReference, phantomReference
- 爱情if else
- ASP.NET中Session和Cache的区别总结
- 炼数成金 Dataguru培训优惠码
- PHP魔术方法之__call与__callStatic方法
- 小胖说事11-------automaticallyAdjustsScrollViewInsets(个人认为iOS7中略坑爹的属性)
- windows下实现微秒级的延时
- gpg XXX NO_PUBKEY XXX
- 《JavaScript程序设计》第2课:JS类型系统
- 为兴趣而编程
- MagicalRecord入门教程