guix-europe
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hosting website? Example using Framagit CI


From: Simon Tournier
Subject: Re: Hosting website? Example using Framagit CI
Date: Tue, 12 Sep 2023 19:28:45 +0200

Hi Andreas,

On Tue, 12 Sept 2023 at 19:07, Andreas Enge <andreas@enge.fr> wrote:

> > From my point of view, this service is the easiest.  If one of you want
> > to host the website generation, feel free to raise your hand. :-) Well,
> > it could be nice to have an automatic way for updating the website on
> > Git push.
>
> I am confused about this paragraph; the gitlab CI does it for us now,
> right?
>

Sorry, it is poorly worded.

GitlabCI from Frama is doing it for my fork now.

    https://zimoun.frama.io/guix-foundation/
    https://framagit.org/zimoun/guix-foundation/

The official Guix Foundation website source code is located at:
https://framagit.org/guix-europe/guix-europe and the GitlabCI is not
yet deployed here.  I was awaiting feedback using my fork as
proof-of-concept before pushing/merging. :-)

The Git repository https://framagit.org/guix-europe/guix-europe will
remains on FramaGit for now.  I think that their GitlabCI and service
fit our needs but if someone would prefer to have a Cron task or a
service for regularly pulling the source code, build and serve on
their own machine, the alternative is still open.

For instance, the website of 10 Years of Guix started with some
GitlabCI and then Ludo configured some stuff somewhere.  The source
code was still hosted on Gitlab.com but the webpages were
automatically built and served by some Ludo's machines.

Is it more clear?

> To make the result more "movable" from one place to another, I added
> a variable %webroot passed to many functions of builder/static-site.scm
> (this is what you call %online-location). I can upload the latest version
> to framagit (during the weekend, say, because I would need to test it
> with our website).

Yes.  It did it quickly and many pages are broken.  Then, I have
started to add here and there a %web-root defined by:

--8<---------------cut here---------------start------------->8---
;;; XXXX: Workaround for relative path and Haunt
(define %web-root
  (or (getenv "GUIX_FOUNDATION") ""))   ;empty string means "/"
  "https://zimoun.frama.io/guix-foundation/";)
--8<---------------cut here---------------end--------------->8---

Having a fork is helping for testing the deployment, IMHO.  Then you
can click on Merge Request and just apply it. :-)

Anyway, cool if you can give a look.

> Actually if we add the good entry to our DNS and a letsencrypt hook,
> we can serve https://foundation.guix.info from framagit and set %webroot
> to "" again...

Yes! :-)

Thanks,
simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]