cdnsync
v0.0.2
Published
Synchronize files on CDN and localhost through FTP
Readme
cdnsync
Synchronize the files on CDN with FTP.
Install
Local
git clone [email protected]:SFantasy/cdnsync.git
cd cdnsync
[sudo] npm install . [-g]NPM
[sudo] npm install cdnsync [-g]Usage
- Write your own config file.
mv config.example.json config.jsonyou have to change these items (if necessary):
// Local directory prefix
"local-prefix": "/branch/site/",
// Remote directory prefix
"remote-prefix": "/site/",
"ftp-config": {
// The IP address or hostname of your FTP server
"host": "localhost",
// Username of your FTP account
"user": "test",
// Password of your FTP account
"password": "abcdefg"
}- Synchronize all the files according to your configuration
cdnsyncLicense
The MIT License
