0

rails s を実行すると、次のエラーが表示されます。

/Users/User/application-name/config/initializers/s3_config.rb:3:in `read': No such file or directory - /Users/User/application-name/config/amazon_s3.yml (Errno::ENOENT)
    from /Users/User/application-name/config/initializers/s3_config.rb:3:in `<top (required)>'
    from /Users/User/application-name/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load'
    from /Users/User/application-name/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0/lib/rails/engine.rb:555:in `block (2 levels) in <class:Engine>'
    from /Users/User/application-name/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `instance_exec'
    from /Users/User/application-name/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0/lib/rails/application.rb:92:in `initialize!'
    from /Users/User/application-name/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/User/application-name/config/environment.rb:5:in `<top (required)>'
    from /Users/User/application-name/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
    from /Users/User/application-name/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `initialize'
    from /Users/User/application-name/config.ru:1:in `new'
    from /Users/User/application-name/config.ru:1:in `<main>'
    from /Users/User/application-name/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0/lib/rails/commands/server.rb:70:in `start'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

これらのエラーを修正する方法を知っている人はいますか?

4

1 に答える 1

1

/Users/User/application-name/config/initializers/s3_config.rb ファイルで、存在しない /Users/User/application-name/config/amazon_s3.yml を読み込もうとしています。

/Users/User/application-name/config/amazon_s3.yml を作成し、認証情報を入れます

于 2012-04-11T18:18:46.047 に答える