forked from MapComplete/MapComplete
REmove mentions of no longer used env variable
This commit is contained in:
parent
c358a4c415
commit
3ceebaba12
2 changed files with 1 additions and 4 deletions
|
@ -8,7 +8,6 @@
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"config": {
|
"config": {
|
||||||
"#": "Use MAPCOMPLETE_CONFIGURATION to use an additional configuration, e.g. `MAPCOMPLETE_CONFIGURATION=config_hetzner`",
|
|
||||||
"#oauth_credentials:comment": [
|
"#oauth_credentials:comment": [
|
||||||
"`oauth_credentials` are the OAuth-2 credentials for the production-OSM server and the test-server.",
|
"`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.",
|
"Are you deploying your own instance? Register your application too.",
|
||||||
|
|
|
@ -9,18 +9,16 @@
|
||||||
# wget https://github.com/pietervdvn/latlon2country/raw/main/tiles.zip
|
# wget https://github.com/pietervdvn/latlon2country/raw/main/tiles.zip
|
||||||
# unzip tiles.zip
|
# unzip tiles.zip
|
||||||
|
|
||||||
MAPCOMPLETE_CONFIGURATION="config_hetzner"
|
|
||||||
cp config.json config.json.bu &&
|
cp config.json config.json.bu &&
|
||||||
cp ./scripts/hetzner/config.json . && # Copy the config _before_ building, as the config might contain some needed URLs
|
cp ./scripts/hetzner/config.json . && # Copy the config _before_ building, as the config might contain some needed URLs
|
||||||
npm run reset:layeroverview
|
npm run reset:layeroverview
|
||||||
npm run test
|
npm run test
|
||||||
npm run prepare-deploy &&
|
npm run prepare-deploy &&
|
||||||
mv config.json.bu config.json &&
|
|
||||||
zip dist.zip -r dist/* &&
|
zip dist.zip -r dist/* &&
|
||||||
|
mv config.json.bu config.json &&
|
||||||
scp ./scripts/hetzner/config/* hetzner:/root/ &&
|
scp ./scripts/hetzner/config/* hetzner:/root/ &&
|
||||||
rsync -rzh --progress dist.zip hetzner:/root/ &&
|
rsync -rzh --progress dist.zip hetzner:/root/ &&
|
||||||
echo "Upload completed, deploying config and booting" &&
|
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" &&
|
ssh hetzner -t "unzip dist.zip && rm dist.zip && rm -rf public/ && mv dist public && caddy stop && caddy start" &&
|
||||||
rm dist.zip
|
rm dist.zip
|
||||||
mv config.json.bu config.json
|
|
||||||
npm run clean
|
npm run clean
|
||||||
|
|
Loading…
Reference in a new issue