Skip to content
This repository

Rake task doesn't load S3DirectUpload.config #50

Closed
Breefield opened this Issue · 2 comments

2 participants

Dustin Hoffman Wayne
Dustin Hoffman

I dropped my S3DirectUpload.config in an initializer, however this doesn't load when running

rake s3_direct_upload:clean_remote_uploads

saying that Missing required arguments: aws_access_key_id, aws_secret_access_key

Seems the rake task needs :environment.

task :clean_remote_uploads => :environment do

I forked and made the change locally without success, any thoughts? I think my local version of the gem may not have been loading, as that should be the fix (I think).

Dustin Hoffman

S3DirectUpload works inside the app, so I know it's getting the ID and secret fine when loaded with the initializer.

PS, S3DirectUpload is wonderful, many many thanks for wrapping Ryan's stuff.

Wayne
Owner

Your correct it does need :environment passed to it. I have done this and updated the git repo, it'll be released in the gem soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.