summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-09 13:57:05 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-09 13:57:05 +0200
commitbd653435e479c39becda0120882a5dcad8ba26cf (patch)
tree920bcd556f5d498b486a7d373fba9c63e8499160
parent5d648a2fbf2d6b788ae6a6e19b6653026587e8f4 (diff)
downloadgohugo-theme-ed-bd653435e479c39becda0120882a5dcad8ba26cf.tar.gz
Debug netlify env II
-rw-r--r--exampleSite/content/env.md5
-rw-r--r--netlify.toml2
2 files changed, 6 insertions, 1 deletions
diff --git a/exampleSite/content/env.md b/exampleSite/content/env.md
new file mode 100644
index 0000000..be905dc
--- /dev/null
+++ b/exampleSite/content/env.md
@@ -0,0 +1,5 @@
+---
+env
+---
+
+~~~ bash
diff --git a/netlify.toml b/netlify.toml
index 09218ae..716b6dc 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -18,7 +18,7 @@
# here but we recommend using the Netlify UI for sensitive
# values to keep them out of your source repository.
[context.production]
- command = 'echo "---\nenv\n---\n~~~ bash\n$(env)\n~~~" >| exampleSite/content/env.md; hugo --source=exampleSite --destination ../public'
+ command = 'echo "$(env)\n~~~" > exampleSite/content/env.md; hugo --source=exampleSite --destination ../public'
[context.production.environment]
HUGO_ENV = 'production'