Include *.txt files when uploading to S3

This commit is contained in:
Andrew Miner
2016-04-05 20:39:50 -07:00
parent b6d17f985f
commit 6a98afa9f2
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -56,6 +56,7 @@ module.exports = (grunt)->
{expand: true, cwd:'./build/static', src:'**/*.js', dest:'./dist/'}
{expand: true, cwd:'./build/static', src:'**/*.json', dest:'./dist/'}
{expand: true, cwd:'./build/static', src:'**/*.ttf', dest:'./dist/'}
{expand: true, cwd:'./build/static', src:'**/*.txt', dest:'./dist/'}
]
coffee:
+2 -1
View File
@@ -36,11 +36,12 @@ GZIP="--add-header=content-encoding:gzip"
CMD="sync $SOURCE_DIR $TARGET_DIR -r -P $HEADERS --stop-on-error --exclude=*"
echo "Preparing to upload to S3..."
s3cmd $CMD -m 'image/png' --include="*.png" || exit 1
s3cmd $CMD -m 'image/gif' --include="*.gif" || exit 1
s3cmd $CMD -m 'image/png' --include="*.png" || exit 1
s3cmd $CMD $GZIP -m 'application/json' --include="*.json" || exit 1
s3cmd $CMD $GZIP -m 'application/octet-stream' --include="*.ttf" || exit 1
s3cmd $CMD $GZIP -m 'text/css; charset=utf8' --include="*.css" || exit 1
s3cmd $CMD $GZIP -m 'text/html; charset=utf8' --include="*.html" || exit 1
s3cmd $CMD $GZIP -m 'text/javascript; charset=utf8' --include="*.js" || exit 1
s3cmd $CMD $GZIP -m 'text/plain' --include="*.txt" || exit 1
echo "S3 Upload Complete"