Fork me on GitHub
#perun
<
2016-05-31
>
kingoftheknoll00:05:37

Hey guys, I’m having fun with Perun but I did run into a snag with the s3-deploy in that it’s wanting a sync the target/public dir. But in all the examples I’ve seen nothing is writing out to that dir. I’m new to boot and I feel like I’m missing something simple here.

kingoftheknoll00:05:22

I got it to work but I needed to add the target task before the sync. What’s odd though is in all other build.boot files this wasn’t done.

podviaznikov02:05:17

@kingoftheknoll: I think you are right about this problem with s3-sync. I made s3-sync but it has this bug from the inception. I was thinking that it might work as you suggested (adding target task before sync) but never tried myself and never updated docs. I think I should do it soon. I’m personally using s3-sync even with mentioned bug, but you might also checkout https://github.com/confetti-clj/confetti by @martinklepsch

martinklepsch10:05:27

@kingoftheknoll: the sync-bucket task that's part of confetti can sync your fileset, you may want to modify it beforehand by using sift — let me know if you have any questions

kingoftheknoll11:05:40

@podviaznikov: and @martinklepsch thanks! I had seen confetti while working on this, I’ll check it out. I do have one question. Boot has the concept of passing a fileset along the pipeline, do I always need to write to disk before syncing or could I just pipe the fileset value to the sync task. Granted, that might be part of sync-bucket and sift but without time right now to look at the source code I thought I’d throw out the question.

martinklepsch12:05:44

@kingoftheknoll: so I think the s3-sync task by @podviaznikov does sync from target. In contrast the sync-bucket task syncs directly from the fileset (by default)

martinklepsch12:05:34

The fileset ultimately is a collection of files spread in a bunch of temporary directories so these files will be uploaded and you don't need to put them all into a single place like target/ before

kingoftheknoll12:05:35

Nice, I assumed it was possible since boot-http seems to take that approach. I'll jump in tonight and give it a try!