Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
Shell
at test-pr-link
123456789101112131415161718192021222324252627#!/bin/bash
# VariablesBINARY_NAME="appview"BINARY_PATH=".bin/app"SERVER="95.111.206.63"USER="appview"
# SCP the binary to root's home directoryscp "$BINARY_PATH" root@$SERVER:/root/"$BINARY_NAME"
# SSH into the server and perform the necessary operationsssh root@$SERVER <<EOF set -e # Exit on error
# Move binary to /usr/local/bin and set executable permissions mv /root/$BINARY_NAME /usr/local/bin/$BINARY_NAME chmod +x /usr/local/bin/$BINARY_NAME
su appview cd ~ ./reset.shEOF
echo "Deployment complete."