Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't do anything #121

Open
nitinhayaran opened this issue Feb 26, 2014 · 6 comments
Open

Doesn't do anything #121

nitinhayaran opened this issue Feb 26, 2014 · 6 comments

Comments

@nitinhayaran
Copy link

When I try to run s3 task, along with other tasks, It doesn't do anything.

$ grunt
Running "s3:prod" (s3) task

Done, without errors.

But if I run this task by specifically mentioning task name, it runs perfectly fine.

$ grunt s3:prod
Running "s3:prod" (s3) task
>> → File Exists, skipped: dist/img/42458215.user.png
>> → File Exists, skipped: dist/img/375d5fe6.horizontal-loader.gif
>> → File Exists, skipped: dist/img/565bf295.no-thumb.jpg
>> → File Exists, skipped: dist/img/72e54712.hotels.png
>> → File Exists, skipped: dist/img/cad7490a.setting.png
>> → File Exists, skipped: dist/img/b639a587.accept.png
>> → File Exists, skipped: dist/img/ed2654aa.pixel.png
>> → File Exists, skipped: dist/img/d33d6e42.copy.png

Done, without errors.
@nitinhayaran
Copy link
Author

My current configuration are

s3: {
    options: {
        key: '<%= aws.key %>',
        secret: '<%= aws.secret %>',
        bucket: '<%= aws.bucket %>',
        access: 'public-read',
        region: 'ap-southeast-1'
    },
    prod: {
        // These options override the defaults
        options: {
            maxOperations: 10
        },
        // Files to be uploaded.
        sync: [{
            src: 'dist/**/*.*',
            dest: 'static/',
            rel: 'dist',

            options: {
                gzip: true,
                gzipExclude: ['.jpg', '.jpeg', '.png', '.gif', '.woff', '.wav', '.webp']
            }
        }]
    }

}

and default grunt task is

grunt.registerTask('default', [
    'clean:dist',
    'less:build',
    'cssmin',
    'uglify',
    'copy:dist',
    'copy:template',
    'requirejs:dist',
    'useminPrepare',
    'rev',
    'usemin',
    'cdn',
    'clean:minified',
    's3:prod'
]);

@0xjjpa
Copy link

0xjjpa commented Feb 26, 2014

Same boat over here, I'm already trying a couple options. I'll let you know if something comes up.

@silvenon
Copy link

Confirmed, same with me.

@mattpage
Copy link

Yup, does nothing here too

@innermond
Copy link

run grunt s3 -v to see if module is able to select any file.

@sreevisakh
Copy link

its not picking up any files as well. I tried absolute/relate/yeoman paths nothing seems to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants