Update docs of script

This commit is contained in:
Pieter Vander Vennet 2024-04-26 16:52:19 +02:00
parent 168c3e5f99
commit 40efc9aefd

View file

@ -1,5 +1,6 @@
#! /bin/bash
### To be run from the root of the repository
### To be run from the root of the repository
### Prepares and builds MapComplete, uploads it to hetzner for hosted.mapcomplete.org. Will upload about 500MB to this computer
# Some pointers to get started:
# apt install npm
@ -20,5 +21,5 @@ scp ./Docs/ServerConfig/hetzner/* 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
rm dist.zip
npm run clean