#!/bin/bash # Deploy frontend ARCHITECT a /opt/architect/web/ set -e DIR="$(cd "$(dirname "$0")" && pwd)" cd "$DIR" echo "Building..." npm run build echo "Deploying..." ssh -i ~/.ssh/tzzr root@69.62.126.110 "rm -rf /opt/architect/web/* && cp -r $DIR/dist/* /opt/architect/web/" echo "Done: https://tzzrarchitect.me"