2014-10-19 60 views
-1

該應用程序正常運行在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' 

回答

-1

我認爲銷售商都沒有發現。

嘗試運行bundle命令將其安裝在本地計算機上。

+0

我在運行'bundle'命令時沒有解決問題(運行bundle install) – 2014-10-20 05:51:56

+0

,控制檯說什麼? – 2014-10-20 08:25:18

+0

您的套件已完成! 使用'bundle show [gemname]'查看捆綁的gem的安裝位置。 – 2014-10-20 10:46:55

-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)

相關問題