From f539a9012078c7e51f9360e8099c2a76c09fce19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20P=C5=82otka?= Date: Thu, 25 Apr 2019 14:58:52 +0100 Subject: [PATCH] website: Fixing netlify. (#1080) Signed-off-by: Bartek Plotka --- Makefile | 2 +- netlify.toml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index dfd8cab1c6..3df7455201 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ PROMU ?= $(GOBIN)/promu-$(PROMU_VERSION) PROMU_VERSION ?= 264dc36af9ea3103255063497636bd5713e3e9c1 PROTOC ?= $(GOBIN)/protoc-$(PROTOC_VERSION) PROTOC_VERSION ?= 3.4.0 -# v0.55.3 +# v0.55.3 This needs to match with version in netlify.toml HUGO_VERSION ?= 993b84333cd75faa224d02618f312a0e96b53372 HUGO ?= $(GOBIN)/hugo-$(HUGO_VERSION) # v3.1.1 diff --git a/netlify.toml b/netlify.toml index 81e5c1b333..f5c7576308 100644 --- a/netlify.toml +++ b/netlify.toml @@ -10,8 +10,10 @@ publish = "website/public" # via simple curl. environment = { HUGO_VERSION="0.55.3" } -[context.production] -command = "make web HUGO=$(which hugo)" +# NOTE: Sleep at then is to make sure logs are not truncated on error. +command = "(env && make web HUGO=$(which hugo)) || (sleep 30; false)" [context.deploy-preview] -command = "make web HUGO=$(which hugo) WEBSITE_BASE_URL=${DEPLOY_PRIME_URL}" \ No newline at end of file + +# NOTE: Sleep at then is to make sure logs are not truncated on error. +command = "(env && make web HUGO=$(which hugo) WEBSITE_BASE_URL=${DEPLOY_PRIME_URL}) || (sleep 30; false)" \ No newline at end of file