guix-commits
[Top][All Lists]
Advanced

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

23/29: website: Hard-code file:// URL root when GUIX_WEB_SITE_LOCAL.


From: Ludovic Courtès
Subject: 23/29: website: Hard-code file:// URL root when GUIX_WEB_SITE_LOCAL.
Date: Wed, 6 Dec 2017 09:24:27 -0500 (EST)

civodul pushed a commit to branch master
in repository guix-artwork.

commit 3c4a4490c62db7e5ac884368760c14c593bf38b3
Author: Ludovic Courtès <address@hidden>
Date:   Wed Dec 6 14:05:20 2017 +0100

    website: Hard-code file:// URL root when GUIX_WEB_SITE_LOCAL.
    
    * website/apps/base/utils.scm (guix-url): When GUIX_WEB_SITE_LOCAL,
    hard-code the file:// URL.
---
 website/apps/base/utils.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/apps/base/utils.scm b/website/apps/base/utils.scm
index e081652..7e0a844 100644
--- a/website/apps/base/utils.scm
+++ b/website/apps/base/utils.scm
@@ -92,7 +92,7 @@
   ;; If we are trying out the website locally, use "/" as the root.
   ;; Otherwise use guix-root-url-path for deployment to gnu.org.
   (if (getenv "GUIX_WEB_SITE_LOCAL")
-      (string-append "/" subpath)
+      (string-append "file:///tmp/gnu/software/guix/" subpath)
       (string-append (guix-root-url-path) subpath)))
 
 



reply via email to

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