应用程序正在Web服务器上正常运行,我尝试在本地运行它,我收到这些错误。 知道问题可能是什么吗?我是Ruby的新手,所以如果这是一个简单的问题,请原谅我
..../.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 18 column 3 (Psych::SyntaxError)
from ..../.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/psych.rb:370:in `parse_stream'
from ..../.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/psych.rb:318:in `parse'
from ..../.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/psych.rb:245:in `load'
from ..../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/application/configuration.rb:115:in `database_configuration'
from ..../.rvm/gems/ruby-2.1.3/gems/activerecord-3.2.3/lib/active_record/railtie.rb:75:in `block (2 levels) in <class:Railtie>'
from ..../.rvm/gems/ruby-2.1.3/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from ..../.rvm/gems/ruby-2.1.3/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from ..../.rvm/gems/ruby-2.1.3/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load'
from ..../.rvm/gems/ruby-2.1.3/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:25:in `each'
from ..../.rvm/gems/ruby-2.1.3/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:25:in `on_load'
from ..../.rvm/gems/ruby-2.1.3/gems/activerecord-3.2.3/lib/active_record/railtie.rb:74:in `block in <class:Railtie>'
from ..../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `instance_exec'
from ..../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `run'
from ..../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'
from ..../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `each'
from ..../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `run_initializers'
from ..../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/application.rb:136:in `initialize!'
from ..../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from ..../appname/config/environment.rb:5:in `<top (required)>'
from ..../.rvm/gems/ruby-2.1.3/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from ..../.rvm/gems/ruby-2.1.3/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
from ..../.rvm/gems/ruby-2.1.3/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from ..../.rvm/gems/ruby-2.1.3/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from ..../appname/config.ru:4:in `block in <main>'
from ..../.rvm/gems/ruby-2.1.3/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from ..../.rvm/gems/ruby-2.1.3/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from ..../appname/config.ru:1:in `new'
from ..../appname/config.ru:1:in `<main>'
from ..../.rvm/gems/ruby-2.1.3/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from ..../.rvm/gems/ruby-2.1.3/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from ..../.rvm/gems/ruby-2.1.3/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from ..../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/commands/server.rb:46:in `app'
from ..../.rvm/gems/ruby-2.1.3/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from .../.rvm/gems/ruby-2.1.3/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from .../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in `start'
from ../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/commands.rb:55:in `block in <top (required)>'
from .../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
from .../.rvm/gems/ruby-2.1.3/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
答案 0 :(得分:-1)
我认为找不到供应商。
尝试运行bundle
命令将其安装在本地计算机上。
答案 1 :(得分:-1)
我不知道这是否有用,但我也得到以下警告
弃用警告:您在供应商/插件中拥有Rails 2.3风格的插件!在Rails 4.0中将删除对这些插件的支持。移出它们并将它们捆绑在Gemfile中,或者将它们作为lib / myplugin / *和config / initializers / myplugin.rb折叠到您的应用程序中。有关详细信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released。 (从... / appname / Rakefile:7调用)