該應用程序正常運行在Web服務器上,我試圖在本地運行它,並且出現這些錯誤。 任何想法可能是什麼問題?我是新來的Ruby,所以請原諒我,如果這是一個簡單的問題嘗試運行現有的應用程序並獲取(Psych :: SyntaxError)
..../.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'
我在運行'bundle'命令時沒有解決問題(運行bundle install) – 2014-10-20 05:51:56
,控制檯說什麼? – 2014-10-20 08:25:18
您的套件已完成! 使用'bundle show [gemname]'查看捆綁的gem的安裝位置。 – 2014-10-20 10:46:55