~sircmpwn/sr.ht-discuss

5 3

404 error when automatingg sourcehut pages

Details
Message ID
<aa7e7cd0-e5db-459f-bfcd-0f64b81cb96d@gmail.com>
DKIM signature
pass
Download raw message
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.


||
Details
Message ID
<Sat2STkesQDHWQJbxURbWoBtzO0iTDbJlz9w2Z5sGIFTvSQGgLQxU4l_UKqGPYUmxxp0CQRKC3TFyu8HcuhFK7ySRiV6tKZcULMX1oYj7Bo=@emersion.fr>
In-Reply-To
<aa7e7cd0-e5db-459f-bfcd-0f64b81cb96d@gmail.com> (view parent)
DKIM signature
pass
Download raw message
The website https://gavox.srht.site shows up correctly for me…
Are you getting some error message of some kind?
Details
Message ID
<btstp2ja7ae7lbxf2ishuccoceoypdcvkws35zh6wfup5hbdse@kkhb5hrxm4p5>
In-Reply-To
<aa7e7cd0-e5db-459f-bfcd-0f64b81cb96d@gmail.com> (view parent)
DKIM signature
pass
Download raw message
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.
Details
Message ID
<CAGhVe-XCnSC_6RU_+b_SwB+14g-==tyHoiC9w_mhZ6ZxGk=62g@mail.gmail.com>
In-Reply-To
<btstp2ja7ae7lbxf2ishuccoceoypdcvkws35zh6wfup5hbdse@kkhb5hrxm4p5> (view parent)
DKIM signature
pass
Download raw message
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
===============
Details
Message ID
<esk7fwclsj6he3gsodnr2w2z36spssad7eoz4rqcyoh3glsbzk@wirkwvagpeae>
In-Reply-To
<CAGhVe-XCnSC_6RU_+b_SwB+14g-==tyHoiC9w_mhZ6ZxGk=62g@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
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
Details
Message ID
<CAGhVe-UQ-Gh2Yi_2Z-eJouFoJkP3CT+Dxo9u2FQUL6LpncZomQ@mail.gmail.com>
In-Reply-To
<esk7fwclsj6he3gsodnr2w2z36spssad7eoz4rqcyoh3glsbzk@wirkwvagpeae> (view parent)
DKIM signature
pass
Download raw message
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
===============
Reply to thread Export thread (mbox)