Skip to content

Commit

Permalink
Add gzip content encoding header when push to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudud committed Mar 24, 2013
1 parent 5e07d0e commit 90babeb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions Gruntfile.js
Expand Up @@ -8,9 +8,6 @@ module.exports = function (grunt) {
' <%= pkg.author.name %>\n' +
'* Licensed under AGPLv3. */'
},
buster: {
test: { config: 'test/buster.js' }
},
clean: {
dist: ['dist'],
temp: ['dist/temp']
Expand Down Expand Up @@ -120,7 +117,7 @@ module.exports = function (grunt) {
},
tests: {
files: ['src/**/*.js', 'test/**/*_test.js'],
tasks: ['buster', 'jshint:browser']
tasks: ['jshint:browser']
}
}
});
Expand All @@ -134,7 +131,6 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-buster');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-replace');
grunt.loadNpmTasks('grunt-targethtml');
Expand Down
5 changes: 3 additions & 2 deletions fabfile.py
Expand Up @@ -41,8 +41,9 @@ def test():

def _uploadToS3():
with lcd(LOCAL_BUILD_PATH):
local('s3cmd -P --guess-mime-type -r sync . %s' % S3BUCKET)
local('s3cmd -m text/cache-manifest -P put rein.appcache %srein.appcache' % S3BUCKET)
cmd = 's3cmd -P --add-header="Content-Encoding: gzip"'
local('%s --guess-mime-type -r sync . %s' % (cmd, S3BUCKET))
local('%s -m text/cache-manifest put rein.appcache %srein.appcache' % (cmd, S3BUCKET))

def _bump_version(version):
output = local('grunt bump:%s' % version, capture=True)
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -34,7 +34,6 @@
"grunt-contrib-uglify": "~0.2.0",
"grunt-targethtml": "~0.2.2",
"grunt-replace": "~0.4.0",
"grunt-buster": "~0.1.2",
"grunt-bump": "0.0.2",
"grunt-contrib-cssmin": "~0.5.0",
"grunt-exec": "~0.4.0"
Expand Down

0 comments on commit 90babeb

Please sign in to comment.