Skip to content

felipedmz/s3-repo-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages