Skip to content

Instantly share code, notes, and snippets.

@tarky
Created December 15, 2015 03:53
Show Gist options
  • Save tarky/2b4deb9a9416466b1575 to your computer and use it in GitHub Desktop.
Save tarky/2b4deb9a9416466b1575 to your computer and use it in GitHub Desktop.
no 'mime-types' error when s3_sync
/Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/fog-core-1.35.0/lib/fog/storage.rb:68:in `get_content_type': uninitialized constant Fog::Storage::MIME (NameError)
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/fog-core-1.35.0/lib/fog/storage.rb:79:in `parse_data'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/fog-aws-0.7.6/lib/fog/aws/requests/storage/put_object.rb:39:in `put_object'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/fog-aws-0.7.6/lib/fog/aws/models/storage/file.rb:212:in `save'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/fog-core-1.35.0/lib/fog/core/collection.rb:51:in `create'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-s3_sync-3.3.4/lib/middleman/s3_sync/resource.rb:86:in `block in create!'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-s3_sync-3.3.4/lib/middleman/s3_sync/resource.rb:126:in `open'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-s3_sync-3.3.4/lib/middleman/s3_sync/resource.rb:126:in `local_content'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-s3_sync-3.3.4/lib/middleman/s3_sync/resource.rb:85:in `create!'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-s3_sync-3.3.4/lib/middleman/s3_sync.rb:146:in `block in create_resources'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-s3_sync-3.3.4/lib/middleman/s3_sync.rb:145:in `each'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-s3_sync-3.3.4/lib/middleman/s3_sync.rb:145:in `create_resources'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-s3_sync-3.3.4/lib/middleman/s3_sync.rb:41:in `sync'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-s3_sync-3.3.4/lib/middleman-s3_sync/commands.rb:59:in `s3_sync'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-core-3.4.0/lib/middleman-core/cli.rb:72:in `method_missing'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:29:in `run'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:126:in `run'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-core-3.4.0/lib/middleman-core/cli.rb:20:in `start'
from /Users/hoge/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/middleman-core-3.4.0/bin/middleman:18:in `<top (required)>'
from /Users/hoge/.rbenv/versions/2.1.2/bin/middleman:23:in `load'
from /Users/hoge/.rbenv/versions/2.1.2/bin/middleman:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment