=======================插件安装配置============================
安装Dashboard插件
本来想安装kanban的,但是kanban版本太低,而我下载的redmine是3.0的,所以选择Dashboard来进行替代。
Redmine下载地址:https://www.redmine.org/plugins/redmine-dashboard
下载好了后,解压复制到C:\Bitnami\redmine-3.0.2-0\apps\redmine\htdocs\plugins目录下
然后点击启动菜单-开始-Bitnami Redmine Stack-使用{product_fullname},弹出一个CMD窗口。
输入:cd apps\redmine\htdocs\plugins,跳转到plugins目录,一定要进入这个目录,官网说的只到htdocs目录,这是为什么我一直失败的原因,shit.
然后输入:bundle install --without development test
如果报
Could not locate Gemfile
是因为缺少Gemfile文件。
bundle init
可以生成一个新的Gemfile文件
然后输入:rake redmine:plugins:migrate RAILS_ENV=production
如果报
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
原因是没有在工程目录下执行该语句。
解决:
cd 到插件的安装目录下,执行即可。
其余错误解决方法
2.rake aborted!
You have already activated rake 0.9.2.2, but your Gemfile requires rake 10.1.1.
Prepending `bundle exec` to your command may solve this.
解决:
gem install rake
3.rake aborted!
Access denied for user 'root'@'localhost' (using password: NO)
原因:这并不是因为db.yml这个文件启动有问题,而是因为没有设置环境变量。
解决:
应先执行 set RAILS_ENV=production即可