refile / refile-s3

Amazon S3 Backend for Refile
MIT License
36 stars 88 forks source link

Migrate from Refile to ActiveStorage #40

Closed jimmypoulsen closed 4 years ago

jimmypoulsen commented 4 years ago

Hi guys. We’re in the middle of migrating from Refile to ActiveStorage. We’ve been using Refile for the past 3-4 years now but recently decided to upgrade our Rails 5 application to Rails 6 and along comes ActiveStorage. Everything worked fine with Refile until we started to implement Action Mailbox which relies on ActiveStorage. To store the inbound emails we need to use the aws-sdk-s3 gem but when I run bundle install it can't find any compatible versions for aws-sdk-core:

Bundler could not find compatible versions for gem "aws-sdk-core":
  In snapshot (Gemfile.lock):
    aws-sdk-core (= 3.105.0)

  In Gemfile:
    refile-s3 was resolved to 0.2.0, which depends on
      aws-sdk (~> 2.0) was resolved to 2.0.1.pre, which depends on
        aws-sdk-resources (= 2.0.1.pre) was resolved to 2.0.1.pre, which depends on
          aws-sdk-core (= 2.0.1)

    aws-sdk-s3 was resolved to 1.79.1, which depends on
      aws-sdk-core (~> 3, >= 3.104.3)

Gemfile

gem 'refile', require: 'refile/rails', github: 'manfe/refile'
gem 'refile-memory'
gem 'refile-mini_magick'
gem 'refile-s3'

gem 'aws-sdk-s3', require: false

In order to migrate the data from Refile to ActiveStorage we need to have the two run alongside each other in the beginning.

Does anyone know what I'm doing wrong?