hashobject / boot-s3 Goto Github PK
View Code? Open in Web Editor NEWBoot task for syncing local directory with AWS S3 bucket
License: Eclipse Public License 1.0
Boot task for syncing local directory with AWS S3 bucket
License: Eclipse Public License 1.0
The task currently syncs from target dir so when I do something like boot build deploy
the syncing to target/
is done after the deploy task and there's no difference. Only a second invocation of the sync task will actually pickup the changes.
Currently if I want to upload target/public
I need to supply target/public
as :source
. I think the more idiomatic boot-way would be to do something like (str (get-env :target-dir) (:source opts))
.
Will create a PR.
I am trying to push files from target directory, no resources. But I get always an issue
There are no local changes to push.
How to set other than resources directory for pushing? The built.boot file is as following:
(def project 's3-test-adam2)
(def version "0.1.0-SNAPSHOT")
(set-env! :resource-paths #{"resources"}
:source-paths #{"src"}
:target-path #{"target"}
:dependencies '[[org.clojure/clojure "RELEASE"]
[hashobject/boot-s3 "0.1.3-SNAPSHOT"]])
(require '[hashobject.boot-s3 :refer :all])
(task-options!
s3-sync {:bucket "ireland.adam"
:access-key (System/getenv "AWS_ACCESS_KEY")
:secret-key (System/getenv "AWS_SECRET_KEY")
:source "public"})
Unsure if this is boot-s3, or confetti, but I get this exception:
clojure.lang.ExceptionInfo: java.lang.IllegalArgumentException: Cannot create enum from eu-west-2 value!
See #2
Currently put-file
does not pass any metadata or permissions to clj-aws-s3/put-object
.
These can be useful for setting things like cache-control headers, content-disposition, etc.
See:
http://weavejester.github.io/clj-aws-s3/aws.sdk.s3.html#var-put-object
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.