Closed danielledeleo closed 3 months ago
Name | Link |
---|---|
Latest commit | c26f6186e7ffaf6620bf0ab62ebdc790419e11ec |
Latest deploy log | https://app.netlify.com/sites/nginx-unit/deploys/65c4eb7135e4f80008d4f222 |
Deploy Preview | https://deploy-preview-95--nginx-unit.netlify.app/howto/falcon |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Any reason to copy vs using symlinks or hardlinks?
LGTM, feel free to merge.
Nit: Maybe explain in a Makefile comment or in the commit message why we're copying the files over. Especially that it's to ensure stable links for internal tests, but those URLs are not part of any public contract and do not necessarily need to be preserved indefinitely.
Might be better to move the copying to the site
build target, so we also see it on local calls of make
or make serve
diff --git a/Makefile b/Makefile
index 508643f..ffd2f0d 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,9 @@ EXCLUDE = \
site: $(BUILDDIR)
@$(SPHINX) -E -b nxt_html source "$(BUILDDIR)"
+# Note: copy files in _downloads/<HASH>/* to _downloads/* to maintain
+# the previous webroot structure for use in internal tests.
+ cp $(BUILDDIR)/_downloads/*/* $(BUILDDIR)/_downloads
$(BUILDDIR):
mkdir "$(BUILDDIR)"
@@ -51,8 +54,4 @@ deploy: site
-rm -rf "$(TMP)"
mkdir $(DEPLOYDIR)/.well-known
curl -L $(UNIT_SECURITY) -o "$(DEPLOYDIR)/.well-known/security.txt" 2>/dev/null
-
-# Note: copy files in _downloads/<HASH>/* to _downloads/* to maintain
-# the previous webroot structure for use in internal tests.
- cp $(DEPLOYDIR)/_downloads/*/* $(DEPLOYDIR)/_downloads
chmod -R g=u "$(DEPLOYDIR)"
These files are guaranteed to have unique filenames because they originate from source/downloads together.
The end result: