我安装了redmine v1.1.3并使用了sqlite。它工作正常但我无法完成可追溯性插件的安装。
设置RAILS_ENV =生产 rake db:migrate命令失败
C:\ redmine-1.1.3> rake db:migrate --trace
(在C:/redmine-1.1.3)
**调用db:migrate(first_time)
**调用环境(first_time)
**执行环境
耙子流产了!
堆栈级别太深
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:28:in old_initilize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:28:in
old_initilize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:28:in initialize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:314:in
new'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:314:in initialize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:299:in
new'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:299:在map'
C:/redmine-1.1.3/lib/redmine.rb:148
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original中
_要求'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:1
58:in
require'
C:/redmine-1.1.3/config/initializers/30-redmine.rb:3
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:1
47:在load_without_new_constant_marking'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:1
47:in
载入'
C:/redmine-1.1.3/config /../ vendor / rails / railties / lib / initializer.rb:622:每个load
_application_initializers'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:621:in
“
C:/redmine-1.1.3/config /../ vendor / rails / railties / lib / initializer.rb:621:在load
_application_initializers'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:176:in
proc中
ESS'
C:/redmine-1.1.3/config /../ vendor / rails / railties / lib / initializer.rb:113:in send
'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:113:in
run'
C:/redmine-1.1.3/config/environment.rb:31
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original
_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:1
56:在require'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:5
21:in
new_constants_in'中
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:1
56:在require'
C:/redmine-1.1.3/vendor/rails/railties/lib/tasks/misc.rake:4
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
来电'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
每个'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:invoke_prerequi
sites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
每个'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in invoke_prerequi
sites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
每个'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_excep
tion_handling”
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_excep
tion_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/ Ruby187 / bin / rake:19:在'load'中
C:/ Ruby187 / bin中/耙:19
我正在使用ms xp和
C:\redmine-1.1.3>ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
C:\redmine-1.1.3>gem list
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
i18n (0.4.2)
mysql (2.8.1 x86-mingw32)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
sqlite3 (1.3.3 x86-mingw32)
我在使用mysql的ubuntu和使用mysql的ms xp时都会收到此错误。在ubuntu上我将堆栈大小更改为无限制,因为“堆栈级别太深”错误但没有任何变化。
答案 0 :(得分:0)
我没有按照插件安装(http://www.redmine.org/projects/redmine/wiki/Plugins)进行操作,而是尝试了下面的代码并且可以正常运行。
RAILS_ENV=production rake db:migrate
征求意见