Hi there, thanks for the good work, I appreciate it.
I am using sourcehut pages to publish a personal blog.
I followed the instructions here: https://srht.site/quickstart and it
worked perfectly.
Now, I am trying to automate the upgrading of the site, following:
https://srht.site/automating-deployments
For that, I created the git project:
https://git.sr.ht/~gavox/gavox.srht.site
And pushed the changes with:
|git push -u origin master |
For instance in:
https://builds.sr.ht/~gavox/job/1142435
Although the build ends successfully, the webpage is down
¿can you please shed some light into why does this fail?
(right now I reverted to the procedure in https://srht.site/quickstart,
since I am alaready using the website, so if it appears to be up is not
because I solved the issue, is only because I went through another
procedure)
thanks a lot in advance.
||
You are zipping the entire repository, but you only need to do it for the
"public" folder. Try to do it like this instead:
tar -C public -cvz . > ../site.tar.gz
Besides you do not really have to commit this folder into your git
repository, instead you could add an intermediate step and build it with
hugo.
Hi Thorben, thanks for looking into it.
That's one way to do it.
I am trying to implement the automated way, in which I don't make a
tar, instead
I use a git repository and builds.sr.ht would generate the webpage form the git
repository.
As described in the automating-deployments webpage.
On Fri, Feb 2, 2024 at 2:28 PM Thorben Günther <admin@xenrox.net> wrote:
>> You are zipping the entire repository, but you only need to do it for the> "public" folder. Try to do it like this instead:> tar -C public -cvz . > ../site.tar.gz>> Besides you do not really have to commit this folder into your git> repository, instead you could add an intermediate step and build it with> hugo.
--
Gabriel Villalobos Camargo
===============
Profesor Ciencia de Datos ESAP
Profesor MM&S UTADEO
Doctor en Ciencias - Física, UN
===============
On Fri, Feb 02, 2024 at 06:30:46PM -0500, Gabriel wrote:
> Hi Thorben, thanks for looking into it.>> That's one way to do it.>> I am trying to implement the automated way, in which I don't make a> tar, instead> I use a git repository and builds.sr.ht would generate the webpage form the git> repository.>> As described in the automating-deployments webpage.
Yes your automated deployment through a builds.sr.ht job would work if
you change your build manifest to this:
https://paste.xenrox.net/~xenrox/08c2b6bb6beb0ff8dc09d497519807fcb24d2913
There exists a repo [1] with more explicit deployment instructions as
well for multiple static site generators. Just take care that the hugo
example still uses the deprecated "acurl" instead of hut.
[1]: https://git.sr.ht/~sircmpwn/pages.sr.ht-examples
It worked! Thanks!
On Fri, Feb 2, 2024 at 6:37 PM Thorben Günther <admin@xenrox.net> wrote:
>> On Fri, Feb 02, 2024 at 06:30:46PM -0500, Gabriel wrote:> > Hi Thorben, thanks for looking into it.> >> > That's one way to do it.> >> > I am trying to implement the automated way, in which I don't make a> > tar, instead> > I use a git repository and builds.sr.ht would generate the webpage form the git> > repository.> >> > As described in the automating-deployments webpage.>> Yes your automated deployment through a builds.sr.ht job would work if> you change your build manifest to this:> https://paste.xenrox.net/~xenrox/08c2b6bb6beb0ff8dc09d497519807fcb24d2913>> There exists a repo [1] with more explicit deployment instructions as> well for multiple static site generators. Just take care that the hugo> example still uses the deprecated "acurl" instead of hut.>> [1]: https://git.sr.ht/~sircmpwn/pages.sr.ht-examples
--
Gabriel Villalobos Camargo
===============
Profesor Ciencia de Datos ESAP
Profesor MM&S UTADEO
Doctor en Ciencias - Física, UN
===============