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

commit 3c4a4490c62db7e5ac884368760c14c593bf38b3
Author: Ludovic Courtès <[email protected]>
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