An easy way to sync CDN repositories with Amazon S3 buckets.
"require": {
"aws/aws-sdk-php": "^3.25",
"monolog/monolog": "^1.22"
}
Edit the config.ini file:
upload_enable=1 to perform sync
sync_directory with slash at the end
version=latest by default
[app]
upload_enabled=0
sync_directory=/foo/bar/YOU_CDN_GIT_REPOSITORY/
[s3]
bucket_name=YOUR_BUCKET_NAME
bucket_user=YOUR_USER
access_key=YOUR_ACCESS_KEY
secret_access_key=YOUR_SECRET_ACCESS_KEY
version=latest
region=YOUR_REGION
Run:
$ php uploader.php