无法使用Phusion Passenger将Spree部署到Apache

时间:2012-02-21 22:45:30

标签: ruby-on-rails apache passenger spree

我有一台运行Apache的Ubuntu 10.04服务器,我一直用它来托管rails应用程序。我无法狂欢地正确部署到服务器。捆绑包安装正确,我可以从rails s mongrel运行应用程序就好了。但是当我从apache / passenger访问该站点时,我收到此错误。

Ruby (Rack) application could not be started

Error message:
 /home/webdeploy/websitename/config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end ...sion_store :cookie_store, key: '_websitename_session' ^
Exception class:
 SyntaxError
Application root:
 /home/webdeploy/websitename

这可能与安装的ruby版本有关吗?回溯的外观是1.8.7。

回溯

#   File    Line    Location
0   /home/webdeploy/websitename/spree/ruby/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb  234 in `load'
1   /home/webdeploy/websitename/spree/ruby/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb  234 in `load'
2   /home/webdeploy/websitename/spree/ruby/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb  225 in `load_dependency'
3   /home/webdeploy/websitename/spree/ruby/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb  234 in `load'
4   /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/engine.rb  556 
5   /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/engine.rb  555 in `each'
6   /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/engine.rb  555 
7   /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/initializable.rb   30  in `instance_exec'
8   /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/initializable.rb   30  in `run'
9   /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/initializable.rb   55  in `run_initializers'
10  /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/initializable.rb   54  in `each'
11  /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/initializable.rb   54  in `run_initializers'
12  /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/application.rb 96  in `initialize!'
13  /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/railtie/configurable.rb    30  in `send'
14  /home/webdeploy/websitename/spree/ruby/1.8/gems/railties-3.1.3/lib/rails/railtie/configurable.rb    30  in `method_missing'
15  /home/webdeploy/websitename/config/environment.rb   5   
16  /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 36  in `gem_original_require'
17  /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 36  in `require'
18  config.ru   3   
19  /usr/lib/ruby/1.8/rack/builder.rb   46  in `instance_eval'
20  /usr/lib/ruby/1.8/rack/builder.rb   46  in `initialize'
21  config.ru   1   in `new'
22  config.ru   1   

1 个答案:

答案 0 :(得分:0)

该问题与在服务器上使用ruby 1.8.7有关。我从ruby-lang.org升级到当前的ruby,一切顺利。