我正在尝试在Windows服务器上运行Redmine。服务器已经运行了IIS,所以我在端口8080和449上安装了Apache。我在这里遵循教程:
https://www.redmine.org/projects/redmine/wiki/RedmineInstall 和 https://www.redmine.org/boards/1/topics/32693
然而,当我尝试运行"瘦启动-e production -p 3000"我得到以下长信息:
C:\Redmine>thin start -e production -p 3000
C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/backends/base.rb:103: war
ning: epoll is not supported on this platform
Using rack adapter
DL is deprecated, please use Fiddle
config.eager_load is set to nil. Please update your config/environments/*.rb fil
es accordingly:
* development - set it to false
* test - set it to false (unless you use a tool that preloads your test enviro
nment)
* production - set it to true
C:/Ruby21/lib/ruby/gems/2.1.0/gems/activerecord-4.2.4/lib/active_record/connecti
on_adapters/connection_specification.rb:248:in `resolve_symbol_connection': 'pro
duction bundle exec rails c' database is not configured. Available: ["production
", "development", "test"] (ActiveRecord::AdapterNotSpecified)
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activerecord-4.2.4/lib/active_re
cord/connection_adapters/connection_specification.rb:211:in `resolve_connection'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activerecord-4.2.4/lib/active_re
cord/connection_adapters/connection_specification.rb:139:in `resolve'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activerecord-4.2.4/lib/active_re
cord/connection_adapters/connection_specification.rb:169:in `spec'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activerecord-4.2.4/lib/active_re
cord/connection_handling.rb:50:in `establish_connection'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activerecord-4.2.4/lib/active_re
cord/railtie.rb:120:in `block (2 levels) in <class:Railtie>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activesupport-4.2.4/lib/active_s
upport/lazy_load_hooks.rb:38:in `instance_eval'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activesupport-4.2.4/lib/active_s
upport/lazy_load_hooks.rb:38:in `execute_hook'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activesupport-4.2.4/lib/active_s
upport/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activesupport-4.2.4/lib/active_s
upport/lazy_load_hooks.rb:44:in `each'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activesupport-4.2.4/lib/active_s
upport/lazy_load_hooks.rb:44:in `run_load_hooks'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activerecord-4.2.4/lib/active_re
cord/base.rb:315:in `<module:ActiveRecord>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activerecord-4.2.4/lib/active_re
cord/base.rb:26:in `<top (required)>'
from C:/Redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `bloc
k in <top (required)>'
from C:/Redmine/config/initializers/00-core_plugins.rb:12:in `eval'
from C:/Redmine/config/initializers/00-core_plugins.rb:12:in `block in <
top (required)>'
from C:/Redmine/config/initializers/00-core_plugins.rb:2:in `each'
from C:/Redmine/config/initializers/00-core_plugins.rb:2:in `<top (requi
red)>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activesupport-4.2.4/lib/active_s
upport/dependencies.rb:268:in `load'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activesupport-4.2.4/lib/active_s
upport/dependencies.rb:268:in `block in load'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activesupport-4.2.4/lib/active_s
upport/dependencies.rb:240:in `load_dependency'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activesupport-4.2.4/lib/active_s
upport/dependencies.rb:268:in `load'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/engine.
rb:652:in `block in load_config_initializer'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/activesupport-4.2.4/lib/active_s
upport/notifications.rb:166:in `instrument'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/engine.
rb:651:in `load_config_initializer'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/engine.
rb:616:in `block (2 levels) in <class:Engine>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/engine.
rb:615:in `each'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/engine.
rb:615:in `block in <class:Engine>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/initial
izable.rb:30:in `instance_exec'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/initial
izable.rb:30:in `run'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/initial
izable.rb:55:in `block in run_initializers'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_
strongly_connected_component'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_
strongly_connected_component_from'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_c
omponent_from'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_co
nnected_component_from'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/initial
izable.rb:44:in `each'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/initial
izable.rb:44:in `tsort_each_child'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:411:in `call'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_c
omponent_from'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_co
nnected_component'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:345:in `each'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:345:in `call'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_c
omponent'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from C:/Ruby21/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/initial
izable.rb:54:in `run_initializers'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.2.4/lib/rails/applica
tion.rb:352:in `initialize!'
from C:/Redmine/config/environment.rb:14:in `<top (required)>'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Redmine/config.ru:3:in `block in <main>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:5
5:in `instance_eval'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:5
5:in `initialize'
from C:/Redmine/config.ru:1:in `new'
from C:/Redmine/config.ru:1:in `<main>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/load
er.rb:33:in `eval'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/load
er.rb:33:in `load'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/load
er.rb:42:in `for'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/controllers/
controller.rb:170:in `load_adapter'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/controllers/
controller.rb:74:in `start'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/runner.rb:20
0:in `run_command'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/runner.rb:15
6:in `run!'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/bin/thin:6:in `<top (
required)>'
from C:/Ruby21/bin/thin:23:in `load'
from C:/Ruby21/bin/thin:23:in `<main>'
我已尝试编辑文件config / environments / ***。rb,但开发和测试文件已设置为false且生产已设置为true。
我也尝试过连接database.yml文件中的不同用户,但仍然会收到此错误。任何帮助将不胜感激。提前谢谢。