From mboxrd@z Thu Jan 1 00:00:00 1970 From: sirgazil Subject: bug#26006: [Website] Integral update proposal Date: Sat, 17 Jun 2017 13:11:00 -0500 Message-ID: References: <57bc6255-c3a1-61e2-fee4-5b6f523a9885@zoho.com> <87injztuax.fsf@gnu.org> <877f0d65qe.fsf@gnu.org> <877f0cjtul.fsf@gnu.org> <493e9e04-fc8f-2a77-0927-a862f174aa55@zoho.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------7CB6C099A655C43D0DB89825" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMHvD-0004f4-6M for bug-guix@gnu.org; Sat, 17 Jun 2017 13:54:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMHv8-00075F-RM for bug-guix@gnu.org; Sat, 17 Jun 2017 13:54:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:50947) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMHv8-00074y-Nc for bug-guix@gnu.org; Sat, 17 Jun 2017 13:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dMHv8-0002LF-Df for bug-guix@gnu.org; Sat, 17 Jun 2017 13:54:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Catonano Cc: 26006@debbugs.gnu.org This is a multi-part message in MIME format. --------------7CB6C099A655C43D0DB89825 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 17/06/17 12:12, Catonano wrote: > 2017-06-17 18:41 GMT+02:00 sirgazil >: > > > Catonano, to avoid building all the packages (3-4 minutes in this > machine), you should run the build like this: > > $ GUIX_WEB_SITE_LOCAL=yes haunt build > > Also, this way, the website URLs are modified to work locally, and > only 300 packages will be built for testing. > > If you run: > > $ haunt build > > It will build the website for production, which uses the gnu.org > URL path for projects, so running "haunt serve" > after that won't display the website correctly. In this case, what > I do is use python server, and not haunt server. Like so: > > $ haunt build > $ cd /tmp/gnu/ > $ python3 -m http.server > > Then you can visit http://localhost:8000/, and the site should > work as if it were in production. > > > All this stuff is good to know, thanks I should write everything in the README. > > I attempted to chhange te build pat to ./build and when seeing it in > Icecat I got the html as plain text, not rendered. > > I reset it to what it was and it works like a charm > > Why ? Yeah, for some reason, system paths specified in Haunt objects can't have dots. See: https://bitbucket.org/sirgazil/guixsd-website/issues/47/ . > > Anyway, now I see the site, I like it but I can't be accurate > > I will have to re-red the whole thread to consiider all the issues > > Thanks ! > Ciao Anytime! -- https://sirgazil.bitbucket.io/ --------------7CB6C099A655C43D0DB89825 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On 17/06/17 12:12, Catonano wrote:
2017-06-17 18:41 GMT+02:00 sirgazil <sirgazil@zoho.com>:

Catonano, to avoid building all the packages (3-4 minutes in this machine), you should run the build like this:

$ GUIX_WEB_SITE_LOCAL
=yes haunt build

Also, this way, the website URLs are modified to work locally, and only 300 packages will be built for testing.

If you run:

$ haunt build

It will build the website for production, which uses the gnu.org URL path for projects, so running "haunt serve" after that won't display the website correctly. In this case, what I do is use python server, and not haunt server. Like so:

$ haunt build
$ cd /tmp/gnu/
$ python3 -m http.server

Then you can visit http://localhost:8000/, and the site should work as if it were in production.

All this stuff is good to know, thanks

I should write everything in the README.


I attempted to chhange te build pat to ./build and when seeing it in Icecat I got the html as plain text, not rendered.

I reset it to what it was and it works like a charm

Why ?

Yeah, for some reason, system paths specified in Haunt objects can't have dots. See: https://bitbucket.org/sirgazil/guixsd-website/issues/47/ .


Anyway, now I see the site, I like it but I can't be accurate

I will have to re-red the whole thread to consiider all the issues

Thanks !
Ciao

Anytime!
-- 
https://sirgazil.bitbucket.io/
--------------7CB6C099A655C43D0DB89825--