From e3f9682c7048849b9e32cb3348e4a524797b816d Mon Sep 17 00:00:00 2001 From: Tobias Benra Date: Tue, 18 Apr 2023 19:24:07 +0200 Subject: [PATCH 1/3] Add Windows command In Windows you need to use a different command to set environment variables. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9eacfed..9980549 100644 --- a/README.md +++ b/README.md @@ -29,13 +29,21 @@ Note that this repository contains code to build different sites with some share ## Local development environment To build the site locally, make sure you have Node installed (currently tested -with version 14). Then run: +with version 14). In Linux run: ```shell npm install npm run build:styles SITE=angestoepselt npm run dev:site ``` +If you are using Windows, you need to use the following command instead: +```shell +npm install +npm run build:styles +$env:SITE="angestoepselt" +npm run dev:site +``` + Go to , which will update live when content changes (the initial build may take some time to render out the different image sizes). From 83a6ad75bfcc438ae60357d3e6d220ad3851ea8a Mon Sep 17 00:00:00 2001 From: Tobias Benra Date: Wed, 19 Apr 2023 19:56:43 +0200 Subject: [PATCH 2/3] Change Documentation for Windows --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9980549..9e660a0 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,11 @@ npm install npm run build:styles SITE=angestoepselt npm run dev:site ``` -If you are using Windows, you need to use the following command instead: +If you are using Windows (either CMD or PowerShell), you need to use the following commands instead: ```shell npm install npm run build:styles -$env:SITE="angestoepselt" +set SITE="angestoepselt" npm run dev:site ``` From fb39db174931dd7b448a76cdef518c59e31cbc99 Mon Sep 17 00:00:00 2001 From: Tobias Benra Date: Tue, 25 Apr 2023 18:57:30 +0200 Subject: [PATCH 3/3] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Der Befehl "set Site " hat doch nicht Also wieder zurück geändert. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9e660a0..61517da 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,11 @@ npm install npm run build:styles SITE=angestoepselt npm run dev:site ``` -If you are using Windows (either CMD or PowerShell), you need to use the following commands instead: +If you are using Windows, you need to use the following commands in PowerShell instead: ```shell npm install npm run build:styles -set SITE="angestoepselt" +$Env:SITE='angestoepselt' npm run dev:site ```