No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
log
src
vendor
.gitignore
README.md
bootstrap.php
composer.json
composer.lock
config.ini
uploader.php

README.md

s3-repo-sync

An easy way to sync CDN repositories with Amazon S3 buckets.

Requires

"require": {
    "aws/aws-sdk-php": "^3.25",
    "monolog/monolog": "^1.22"
}

Usage

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