{"action":"closed","issue":{"url":"https://api.github.com/repos/jpillora/grunt-aws/issues/30","labels_url":"https://api.github.com/repos/jpillora/grunt-aws/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/jpillora/grunt-aws/issues/30/comments","events_url":"https://api.github.com/repos/jpillora/grunt-aws/issues/30/events","html_url":"https://github.com/jpillora/grunt-aws/issues/30","id":66664868,"number":30,"title":"Files not uploading (similar to issue #28)","user":{"login":"nicelemon","id":6396220,"avatar_url":"https://avatars.githubusercontent.com/u/6396220?v=3","gravatar_id":"","url":"https://api.github.com/users/nicelemon","html_url":"https://github.com/nicelemon","followers_url":"https://api.github.com/users/nicelemon/followers","following_url":"https://api.github.com/users/nicelemon/following{/other_user}","gists_url":"https://api.github.com/users/nicelemon/gists{/gist_id}","starred_url":"https://api.github.com/users/nicelemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicelemon/subscriptions","organizations_url":"https://api.github.com/users/nicelemon/orgs","repos_url":"https://api.github.com/users/nicelemon/repos","events_url":"https://api.github.com/users/nicelemon/events{/privacy}","received_events_url":"https://api.github.com/users/nicelemon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-06T17:51:41Z","updated_at":"2015-11-07T14:15:11Z","closed_at":"2015-11-07T14:15:11Z","body":"Similar problem to issue #28; however, suggested fix isn't resolving the problem. I'm referencing the 'prod' directory, which contains my build as the cwd:\r\n\r\n```\r\nmodule.exports = function(grunt) {\r\n\r\n\tgrunt.loadNpmTasks('grunt-aws');\r\n\tgrunt.loadNpmTasks('grunt-contrib-uglify');\r\n\tgrunt.loadNpmTasks('grunt-contrib-copy');\r\n\t\r\n\tgrunt.initConfig({\r\n\t\tpkg: grunt.file.readJSON('package.json'),\r\n\t\taws: grunt.file.readJSON(\"aws-credentials.json\"),\r\n\r\n\t\ts3: {\r\n\t\t\toptions: {\r\n\t\t\t\taccessKeyId: \"<%= aws.accessKeyId %>\",\r\n\t\t\t\tsecretAccessKey: \"<%= aws.secretAccessKey %>\",\r\n\t\t\t\tbucket: \"<%= aws.bucket %>\",\r\n\t\t\t\tregion: \"<%= aws.region %>\",\r\n\t\t\t\taccess: \"public-read\"\r\n\t\t\t},\r\n\t\t\tupload: {\r\n\t\t\t\theaders: {\r\n                    CacheControl: 604800,\r\n                    Expires: new Date(Date.now() + 604800000).toUTCString()\r\n                },\r\n\t\t\t\tcwd: \"prod/\",\r\n\t\t\t\tsrc: \"**\"\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tcloudfront: {\r\n\t\t\toptions: {\r\n\t\t\t\taccessKeyId: \"<%= aws.accessKeyId %>\",\r\n\t\t\t\tsecretAccessKey: \"<%= aws.secretAccessKey %>\",\r\n\t\t\t\tdistributionId: \"EGPU172BPH6RM\",\r\n\t\t\t\tinvalidations: [\r\n\t\t\t\t\t\"/index.html\",\r\n\t\t\t\t\t\"/css/osis.css\",\r\n\t\t\t\t\t\"/js/osis.js\",\r\n\t\t\t\t\t\"/js/osis-fullpage-controls.js\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tcopy: {\r\n\t\t\tmain: {\r\n\t\t\t\texpand: true,\r\n\t\t\t\tcwd: 'dev/',\r\n\t\t\t\tsrc: '**',\r\n\t\t\t\tdest: 'prod/',\r\n\t\t\t},\r\n\t\t},\r\n\r\n\t\tuglify: {\r\n\t\t\tdist: {\r\n\t\t\t\tfiles: {\r\n\t\t\t\t\t'build/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t});\r\n\r\n\tgrunt.registerTask('default', ['copy']);\r\n\tgrunt.registerTask('s3', ['s3']);\r\n\tgrunt.registerTask('uglify', ['uglify']);\r\n};\r\n```\r\n\r\nAnd here's the output of **grunt s3 -v**:\r\n\r\n>user$ grunt s3 -v\r\nInitializing\r\nCommand-line options: --verbose\r\n\r\n>Reading \"Gruntfile.js\" Gruntfile...OK\r\n\r\n>Registering Gruntfile tasks.\r\n\r\n>Registering \"grunt-aws\" local Npm module tasks.\r\nReading /Users/user/Sites/osis.dev/node_modules/grunt-aws/package.json...OK\r\nParsing /Users/user/Sites/osis.dev/node_modules/grunt-aws/package.json...OK\r\n\r\n>Registering \"/Users/user/Sites/osis.dev/node_modules/grunt-aws/tasks/services\" tasks.\r\nLoading \"cloudfront.js\" tasks...OK\r\n+ cloudfront\r\nLoading \"route53.js\" tasks...OK\r\n+ route53\r\nLoading \"s3.js\" tasks...OK\r\n+ s3\r\nLoading \"aws.js\" tasks...OK\r\n>> No tasks were registered or unregistered.\r\nLoading \"cache-mgr.js\" tasks...OK\r\n>> No tasks were registered or unregistered.\r\n\r\n>Registering \"grunt-contrib-uglify\" local Npm module tasks.\r\nReading /Users/user/Sites/osis.dev/node_modules/grunt-contrib-uglify/package.json...OK\r\nParsing /Users/user/Sites/osis.dev/node_modules/grunt-contrib-uglify/package.json...OK\r\nLoading \"uglify.js\" tasks...OK\r\n+ uglify\r\n\r\n>Registering \"grunt-contrib-copy\" local Npm module tasks.\r\nReading /Users/user/Sites/osis.dev/node_modules/grunt-contrib-copy/package.json...OK\r\nParsing /Users/user/Sites/osis.dev/node_modules/grunt-contrib-copy/package.json...OK\r\nLoading \"copy.js\" tasks...OK\r\n+ copy\r\nReading package.json...OK\r\nParsing package.json...OK\r\nReading aws-credentials.json...OK\r\nParsing aws-credentials.json...OK\r\nInitializing config...OK\r\nLoading \"Gruntfile.js\" tasks...OK\r\n+ default, s3, uglify\r\n\r\n>Running tasks: s3\r\n\r\n>Running \"s3\" task\r\n\r\n>Running \"s3\" task\r\n\r\n>Running \"s3\" task\r\n...\r\n\r\nThe line \"Running 's3' task\" continues ad-infinitum. Any help would be greatly appreciated!"}}