尝试运行服务器时,我得到:
=>引导Mongrel => Rails 2.3.8应用程序从http://0.0.0.0:3000开始 C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active _record / connection_adapters / abstract / connection_specification.rb:62:在`establis h_connection':未配置开发数据库(ActiveRecord :: AdapterNotS pecified)
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3
0.8 / LIB / active_record / connection_adapters /抽象/ connection_specification.rb:55 :在`establish_connection'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/
initializer.rb:437:在`initialize_database'
中 from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/
initializer.rb:141:在`process'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/
initializer.rb:113:在`send'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/
initializer.rb:113:在'run'
中 from C:/Sites/lbtco/config/environment.rb:13
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_
require.rb:29:在`gem_original_require'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_
require.rb:29:在`require'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.
3.8 / lib / active_support / dependencies.rb:156:在`require'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.
3.8 / lib / active_support / dependencies.rb:521:在`new_constants_in'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.
3.8 / lib / active_support / dependencies.rb:156:在`require'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/
命令/ server.rb:84
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_
require.rb:29:在`gem_original_require'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_
require.rb:29:在`require'
来自脚本/服务器的:3
C:\网站\ lbtco>
答案 0 :(得分:1)
它在第一个文本块your development database is not configured
运行
rake db:migrate
在你的控制台中。也许你必须先编辑config/database.yml
。