Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to make S3DataSource work for Dragonfly Gem (Ruby 1.9.3)
    primarykey
    data
    text
    <p>As per draganfly documentation here <a href="http://markevans.github.com/dragonfly/file.DataStorage.html" rel="nofollow">http://markevans.github.com/dragonfly/file.DataStorage.html</a></p> <p>I added following code to my initializer/draganfly.rb</p> <pre><code>enter code here app = Dragonfly[:my_app_name] app.datastore = Dragonfly::DataStorage::S3DataStore.new app.datastore.configure do |c| c.bucket_name = 'my_bucket' c.access_key_id = 'salfjasd34u23' c.secret_access_key = '8u2u3rhkhfo23...' c.region = 'eu-west-1' # defaults to 'us-east-1' c.storage_headers = {'some' =&gt; 'thing'} # defaults to {'x-amz-acl' =&gt; 'public-read'} c.url_scheme = 'https' # defaults to 'http' end </code></pre> <p>I could not even start my server after adding code above. Here is the error I get in logs</p> <pre><code>Exiting c:/Connect/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in require: ca not load such file -- fog (LoadError) from c:/Connect/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-`enter code here`3.1.3/lib/active_support/dependencies.rb:240:in block in require from c:/Connect/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in block in load_dependency' from c:/Connect/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in new_constants_in' from c:/Connect/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in load_dependency' from c:/Connect/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in require' from c:/Connect/Ruby193/lib/ruby/gems/1.9.1/gems/dragonfly-0.9.9/lib/dragonfly/data_storage/s3data_store.rb:1:i `&lt;top (required)&gt;' from c:/rail_projects/c4fx2/config/initializers/dragonfly.rb:4:in `&lt;top (required)&gt;' from c:/Connect/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in load' from c:/Connect/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in block in load' </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload