minsh / s3front Goto Github PK
View Code? Open in Web Editor NEWFast command-line tool to upload a directory to an AWS S3 bucket and optionally invalidate the associated AWS CloudFront distribution.
Fast command-line tool to upload a directory to an AWS S3 bucket and optionally invalidate the associated AWS CloudFront distribution.
No files are being uploaded :(
~/W/p/5/5/dist (master *) s3front --bucket xxx --key xxx --secret xxx
301
uploading [ ] 0% 0.0s301
uploading [ ] 0% 2.7s301
uploading [ ] 0% 2.0s301
uploading [ ] 1% 1.7s301
uploading [ ] 1% 1.4s301
uploading [ ] 1% 1.1s301
uploading [ ] 1% 1.8s301
uploading [ ] 1% 2.4s301
uploading [ ] 1% 2.2s301
uploading [ ] 1% 2.1s301
uploading [ ] 1% 68.5s301
uploading [ ] 2% 63.6s301
uploading [ ] 2% 58.9s301
uploading [ ] 2% 54.8s301
uploading [= ] 2% 51.0s301
uploading [= ] 2% 47.8s301
uploading [= ] 2% 45.0s301
uploading [= ] 2% 42.5s301
uploading [= ] 2% 40.3s301
uploading [= ] 3% 49.2s301
uploading [= ] 3% 81.5s301
uploading [= ] 3% 77.8s301
uploading [= ] 3% 74.3s301
uploading [== ] 3% 71.2s301
uploading [== ] 3% 68.3s301
uploading [== ] 3% 65.8s301
uploading [== ] 4% 63.3s301
uploading [== ] 4% 61.1s301
uploading [== ] 4% 59.0s301
uploading [== ] 4% 57.1s
events.js:160
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at exports._errnoException (util.js:1007:11)
at WriteWrap.afterWrite (net.js:793:14)
~/W/p/5/5/dist (master *) node -v
v6.2.1
~/W/p/5/5/dist (master *) npm -v
3.9.3
Would be nice if s3front read the aws credentials and region from ~/.aws/config and ~/.aws/credentials.
From some basic hacking around in the code it appears the aws libraries will automatically read the values unless the constructor is called with the key etc. However the library checks if you supplied the parameters and bombs out if they are not provided.
So the suggested change/feature:
Allow not passing the aws credentials and region, allowing the default behavior to work (reading out of ~/.aws/credentials and ~.aws/config)
Basically it would be nice to be able to define subdirectories/files not to sync up to the bucket.
For example: .git, .idea etc
Presently to only upload what you want, you'd have to stage in a subdirectory and then perform the command from that directory. Aws cli's s3 sync has the following syntax for reference:
aws s3 sync . s3://mybucket --exclude ".idea/*"
filename producing error, etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.