~sircmpwn/sr.ht-discuss

2 2

Sourcehut pages for each project or repository?

Details
Message ID
<01020192e7574e95-7872e2b7-1ea0-49ea-a997-66b0927dc4ef-000000@eu-west-1.amazonses.com>
DKIM signature
pass
Download raw message
Hi!

I'm just getting started with Sourcehut and I've been trying out the
static website hosting using Sourcehut Pages. It seems awesome so far!

If I understood correctly, each site is tied to a user account in
Sourcehut? Is it possible to have a separate site with a different
domain for each project or maybe even for each repository? 

I'm about to move some software projects to Sourcehut and these projects
need static websites in addition to a VCS. It would be nice to have
everything in one place and host these sites in Sourcehut.

Thanks in advance!

Best regards,
jj
Details
Message ID
<D5AS8DQUG0J0.2W085KNSH4TJT@cmpwn.com>
In-Reply-To
<01020192e7574e95-7872e2b7-1ea0-49ea-a997-66b0927dc4ef-000000@eu-west-1.amazonses.com> (view parent)
DKIM signature
pass
Download raw message
On Fri Nov 1, 2024 at 11:48 AM CET, Jack Jackdaw wrote:
> I'm just getting started with Sourcehut and I've been trying out the
> static website hosting using Sourcehut Pages. It seems awesome so far!
>
> If I understood correctly, each site is tied to a user account in
> Sourcehut? Is it possible to have a separate site with a different
> domain for each project or maybe even for each repository? 
>
> I'm about to move some software projects to Sourcehut and these projects
> need static websites in addition to a VCS. It would be nice to have
> everything in one place and host these sites in Sourcehut.

You just get the one domain, yourname.srht.site, included, but you can
have an arbitrary number of bring-your-own-domain sourcehut pages. Docs:

https://srht.site/custom-domains
Details
Message ID
<01020192e76be0a9-53e45e3e-9352-409d-8466-5f199dd7f94e-000000@eu-west-1.amazonses.com>
In-Reply-To
<D5AS8DQUG0J0.2W085KNSH4TJT@cmpwn.com> (view parent)
DKIM signature
pass
Download raw message
On Fri, 01 Nov 2024 11:49:49 +0100 "Drew DeVault" <sir@cmpwn.com> wrote:

> You just get the one domain, yourname.srht.site, included, but you can
> have an arbitrary number of bring-your-own-domain sourcehut pages.

Nice, I didn't realise that it's possible to push a site to any domain!
I was just looking at the quick start and I thought that publishing
using

    $ hut pages publish -d username.srht.site site.tar.gz

always required you to use your username in the domain. That works
perfectly with custom domains too. Thanks for the info!
Reply to thread Export thread (mbox)