1
私は、レールアプリケーションをホストするために使用していたphusion乗客とApacheを実行しているUbuntu 10.04サーバーを持っています。私はサーバーに適切に配備することができません。バンドルが正しくインストールされ、rails s mongrel
からアプリケーションを実行できます。しかし、私がApache/Passengerからサイトにアクセスすると、私はこのエラーを受け取ります。Phusion PassengerでApacheにSpreeを展開できない
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
これはインストールされているルビのバージョンに関連していますか?バックトレースの外観で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