From 3ceebaba121993c398ab7ceeaf80f77eed055faa Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 15 Oct 2023 01:14:55 +0200 Subject: [PATCH] REmove mentions of no longer used env variable --- package.json | 1 - scripts/hetzner/deployHetzner.sh | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index edb3d91950..957a214c0f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ "main": "index.ts", "type": "module", "config": { - "#": "Use MAPCOMPLETE_CONFIGURATION to use an additional configuration, e.g. `MAPCOMPLETE_CONFIGURATION=config_hetzner`", "#oauth_credentials:comment": [ "`oauth_credentials` are the OAuth-2 credentials for the production-OSM server and the test-server.", "Are you deploying your own instance? Register your application too.", diff --git a/scripts/hetzner/deployHetzner.sh b/scripts/hetzner/deployHetzner.sh index 4293075485..63dc7e07aa 100755 --- a/scripts/hetzner/deployHetzner.sh +++ b/scripts/hetzner/deployHetzner.sh @@ -9,18 +9,16 @@ # wget https://github.com/pietervdvn/latlon2country/raw/main/tiles.zip # unzip tiles.zip -MAPCOMPLETE_CONFIGURATION="config_hetzner" cp config.json config.json.bu && cp ./scripts/hetzner/config.json . && # Copy the config _before_ building, as the config might contain some needed URLs npm run reset:layeroverview npm run test npm run prepare-deploy && -mv config.json.bu config.json && zip dist.zip -r dist/* && +mv config.json.bu config.json && scp ./scripts/hetzner/config/* hetzner:/root/ && rsync -rzh --progress dist.zip hetzner:/root/ && echo "Upload completed, deploying config and booting" && ssh hetzner -t "unzip dist.zip && rm dist.zip && rm -rf public/ && mv dist public && caddy stop && caddy start" && rm dist.zip -mv config.json.bu config.json npm run clean