1

我正在尝试根据官方 Wiki 安装 Redmine,但是当我尝试运行时rake generate_secret_token显示以下错误

rake aborted!
Don't know how to build task 'generate_secret_token'

我已经进入这个问题没有成功

Redmine:安装时出现 rake 错误

** 对于上面的问题,我相信运行命令rake secret已经解决了,因为我调用时没有列出 generate_secret_token rake -T**

当我尝试运行 RAILS_ENV=production rakeredmine:load_default_data我得到

rake aborted!
Don't know how to build task 'redmine:load_default_data'

以下是跟踪:

/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rak /task_manager.rb:49:in `[]'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:115:in `invoke_task'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `load'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `<main>'
/home/nuno/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/home/nuno/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
4

2 回答 2

2

generate_secret_token任务仅适用于 Redmine >= 2.0.0。如果您使用旧版本(似乎很可能),则相关任务称为generate_session_store因此,请尝试

bundle exec rake generate_session_store
于 2012-08-14T20:14:38.077 回答
1

最后,我解决了为 Redmine 安装 Bitnami 软件包的问题http://bitnami.com/stack/redmine

于 2013-06-21T19:13:25.593 回答