Redmine安装问题?

时间:2011-12-25 07:42:38

标签: ruby-on-rails redmine

我正在尝试在我的localhost上安装redmine,我在安装过程中遇到了一些问题

C:\redmine>rake db:migrate RAILS_ENV="production"
WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/tas
k' (in RDoc 2.4.2+)' instead.
    at C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rak
e/rdoctask.rb
C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/rdoc/task.rb:30: warning: already ini
tialized constant Task
rake aborted!
uninitialized constant Gem::SyckDefaultKey

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

然后我发现了一些帖子Just cannot get redmine to work

我卸载了gem uninstall -v=0.9.2 rake并安装了gem install -v=0.8.7 rake并运行了以下命令rake db:migrate RAILS_ENV="production"。我仍然无法继续前进。

C:\redmine>rake db:migrate RAILS_ENV="production"
WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/tas
k' (in RDoc 2.4.2+)' instead.
    at C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rak
e/rdoctask.rb
C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/rdoc/task.rb:30: warning: already ini
tialized constant Task
rake aborted!
A key is required to write a cookie containing the session data. Use config.acti
on_controller.session = { :key => "_myapp_session", :secret => "some secret phra
se" } in config/environment.rb

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

我做错了什么?

1 个答案:

答案 0 :(得分:1)

在部署env。

之前,您必须为会话生成密码

Juste使用此命令:

rake generate_session_store

然后你可以继续你的:

rake db:migrate RAILS_ENV="production"

最后(在Windows下):

rake redmine:load_default_data RAILS_ENV="production"