Commit a818affe authored by doshitan's avatar doshitan

Add some options to s3cmd sync

parent e4c0bca6
......@@ -67,15 +67,22 @@ AWS_S3_BUCKET ?= some-bucket-name
sync: sync-content sync-headers sync-fix-mime
sync-content:
s3cmd sync $(DEST_DIR)/ s3://$(AWS_S3_BUCKET)/ \
--verbose \
S3CMD_SYNC_FLAGS := --verbose \
--human-readable-sizes \
--no-preserve \
--no-mime-magic --guess-mime-type \
--encoding=UTF-8 --add-encoding-exts=css,html,js,txt \
--cf-invalidate \
--cf-invalidate-default-index
ifndef S3CMD_SYNC_DONT_CF_INVALIDATE
S3CMD_SYNC_FLAGS += --cf-invalidate --cf-invalidate-default-index
endif
ifdef S3CMD_SYNC_REMOVE_OUTDATED
S3CMD_SYNC_FLAGS += --delete-removed
endif
sync-content:
s3cmd sync $(DEST_DIR)/ s3://$(AWS_S3_BUCKET)/ $(S3CMD_SYNC_FLAGS)
sync-headers:
s3cmd modify s3://$(AWS_S3_BUCKET) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment