Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by mail-b.sr.ht (Postfix) with ESMTPS id F41CFFF08B for <~mieum/booksin.space@lists.sr.ht>; Mon, 2 Nov 2020 13:38:58 +0000 (UTC) Authentication-Results: mail-b.sr.ht; dkim=fail reason="key not found in DNS" (0-bit key) header.d=cmpwn.com header.i=@cmpwn.com header.b=UqsYgpY+ MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpwn.com; s=key1; t=1604324337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=pel++C6ETkcHquCpm6tfQl/NKAje3duhCHOmtRYmf3M=; b=UqsYgpY+Zs7xZen+IE4Cz/gDNwCfgm5Q0zms6Ts2OE3apUP1H/KxtsqP6ZMySTQ5/7C34k 5L7WS2AU+QqhXtOhuDXGshHah3vaZkhMPcWYekV6kBC50wfPMWaCKyd4rryplTeSiLaMi9 vPFoBfHlwa1Y9pyIoIODiBupAhB5QTSMO15Lb+/EsQ3Ui+5AdLafDtiVndifwTYb4ZKOyO v2Jr//vmFhfXTAGqEwjVD8lH4JuD0Thg533kUjEjuCaQC7Vm7B1tLGi39DD35yJb0TaUKz N9rqORwV1bgE/QzSWx0gIK9ytl4rt/XDkmX5tFTU3BojfnaHFl3kGR+EPSvz+A== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Subject: Re: The brick and mortar X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Drew DeVault" To: "mieum" , "Arav K." , "Callum Brown" , <~mieum/booksin.space@lists.sr.ht> Date: Mon, 02 Nov 2020 09:37:00 -0400 Message-Id: In-Reply-To: X-Spam-Score: 1.40 On Mon Nov 2, 2020 at 8:55 AM EDT, mieum wrote: > 1. Should the source files for the capsule builder be included in the > repo, or should that be put into its own project repo elsewhere? I'm > not really sure how the sourcehut builds system works or how to plan > around it :) I would probably put them in separate repos. builds.sr.ht can manage that just fine. > But as far as update intervals goes, I don't know that > something such as this would require being updated frequently. I > wonder about how many more resources this would require (not just the > server, but also on sourcehut's end). Alternatively, couldn't the > server pull the changes in response to a webhook, and then have a > rebuild triggered if changes are merged? I would just use .build.yml in the source data repository which builds and pushes the books up to the server over SSH. See how I deploy my blog as an example: https://git.sr.ht/~sircmpwn/drewdevault.com/tree/master/.build.yml > 3. Will this require a database, or would it suffice to just source the > data and metadata directly through the source directory structure at > build time? A database might not be necessary at first, but it might be helpful later on to enable features like search. > 4. This one kind of relates to #1, but shouldn't the git repo include > some sort of yaml template that includes all the necessary and > accepted fields? Perhaps there should at least be a msc/ or meta/ > folder containing stuff like that...? Yeah, probably. > It seemed like there was more I wanted to ask about, but I'm too groggy > to remember. Anyway, thanks again, Arav. I'm hoping that this week I > will have a chance to start getting some code together (by the weekend > at the latest). I think it's time to go less talky more codey.