set microvm fixed in -y caddy and correct webserver dir
This commit is contained in:
parent
826bc45292
commit
1c90be98f3
@ -58,7 +58,7 @@ Run on a TFGrid micro VM with IPv4 address. Make sure to point a DNS A record of
|
||||
|
||||
- From a fresh micro VM
|
||||
```
|
||||
apt update && apt install -y git
|
||||
apt update && apt install -y git make
|
||||
git clone https://git.ourworld.tf/tfgrid/ui_poc
|
||||
cd ui_poc
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ apt install -y debian-keyring debian-archive-keyring
|
||||
apt install -y apt-transport-https
|
||||
echo "deb [trusted=yes] https://releases.caddyserver.com/deb/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/caddy.list
|
||||
apt update
|
||||
apt install caddy
|
||||
apt install -y caddy
|
||||
|
||||
cat <<EOF >> /etc/zinit/caddy.yaml
|
||||
exec: caddy reverse-proxy --from ${domain} --to :8000
|
||||
@ -40,10 +40,10 @@ EOF
|
||||
|
||||
zinit monitor caddy
|
||||
|
||||
chmod +x /root/ui_poc/app/webserver.sh
|
||||
chmod +x /root/ui_poc/scripts/webserver.sh
|
||||
|
||||
cat <<EOF >> /etc/zinit/webserver.yaml
|
||||
exec: bash /root/ui_poc/app/webserver.sh
|
||||
exec: bash /root/ui_poc/scripts/webserver.sh
|
||||
EOF
|
||||
|
||||
zinit monitor webserver
|
||||
|
Loading…
Reference in New Issue
Block a user